]> source.dussan.org Git - redmine.git/commitdiff
Merged r3832 from trunk.
authorEric Davis <edavis@littlestreamsoftware.com>
Thu, 8 Jul 2010 03:48:40 +0000 (03:48 +0000)
committerEric Davis <edavis@littlestreamsoftware.com>
Thu, 8 Jul 2010 03:48:40 +0000 (03:48 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/0.9-stable@3834 e93f8b46-1217-0410-a6f0-8f06a7374b81

extra/svn/Redmine.pm

index f608ee124dcd04560c23ab74d91d2117841ac17e..091e2193034efba866b53ceb1aea263c0df42983 100644 (file)
@@ -338,7 +338,9 @@ sub is_member {
                 bindpw  =>      $rowldap[4] ? $rowldap[4] : "",
                 filter  =>      "(".$rowldap[6]."=%s)"
             );
-            $ret = 1 if ($ldap->authenticate($redmine_user, $redmine_pass));
+            my $method = $r->method;
+            $ret = 1 if ($ldap->authenticate($redmine_user, $redmine_pass) && ((defined $read_only_methods{$method} && $permissions =~ /:browse_repository/) || $permissions =~ /:commit_access/));
+
           }
           $sthldap->finish();
           undef $sthldap;