@@ -338,7 +338,9 sub is_member { | |||||
338 | bindpw => $rowldap[4] ? $rowldap[4] : "", |
|
338 | bindpw => $rowldap[4] ? $rowldap[4] : "", | |
339 | filter => "(".$rowldap[6]."=%s)" |
|
339 | filter => "(".$rowldap[6]."=%s)" | |
340 | ); |
|
340 | ); | |
341 | $ret = 1 if ($ldap->authenticate($redmine_user, $redmine_pass)); |
|
341 | my $method = $r->method; | |
|
342 | $ret = 1 if ($ldap->authenticate($redmine_user, $redmine_pass) && ((defined $read_only_methods{$method} && $permissions =~ /:browse_repository/) || $permissions =~ /:commit_access/)); | |||
|
343 | ||||
342 | } |
|
344 | } | |
343 | $sthldap->finish(); |
|
345 | $sthldap->finish(); | |
344 | undef $sthldap; |
|
346 | undef $sthldap; |
General Comments 0
You need to be logged in to leave comments.
Login now