git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/0.9-stable@3834
e93f8b46-1217-0410-a6f0-
8f06a7374b81
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;