Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Check the browse repository or commit access permissions in Redmine.p…

…m with LDAP. #5797

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3832 e93f8b46-1217-0410-a6f0-8f06a7374b81
  • Loading branch information...
commit 69af1515d1fd7e9cf2ae01b19f075d5483f46cc1 1 parent ef5bca0
@edavis10 edavis10 authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 extra/svn/Redmine.pm
View
4 extra/svn/Redmine.pm
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.