diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-12-04 12:46:25 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-12-04 12:46:25 +0000 |
commit | c2723f4bc073e26f404a6de8ba90274995da08a2 (patch) | |
tree | ad0cdd151dfc662f36ff3b3518c857a1683d432b | |
parent | 05fe793c4fc8a2975e4a3d123c59e4571e5b9a15 (diff) | |
download | redmine-c2723f4bc073e26f404a6de8ba90274995da08a2.tar.gz redmine-c2723f4bc073e26f404a6de8ba90274995da08a2.zip |
Merged r14883 (#16948).
git-svn-id: http://svn.redmine.org/redmine/branches/3.1-stable@14914 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | extra/svn/Redmine.pm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/extra/svn/Redmine.pm b/extra/svn/Redmine.pm index 1ec057645..8b7fe158f 100644 --- a/extra/svn/Redmine.pm +++ b/extra/svn/Redmine.pm @@ -332,8 +332,10 @@ sub access_handler { my $project_id = get_project_identifier($r); - $r->set_handlers(PerlAuthenHandler => [\&OK]) - if is_public_project($project_id, $r) && anonymous_allowed_to_browse_repository($project_id, $r); + if (is_public_project($project_id, $r) && anonymous_allowed_to_browse_repository($project_id, $r)) { + $r->user(""); + $r->set_handlers(PerlAuthenHandler => [\&OK]); + } return OK } |