From: Jean-Philippe Lang Date: Fri, 4 Dec 2015 12:47:42 +0000 (+0000) Subject: Merged r14883 (#16948). X-Git-Tag: 2.6.9~5 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5bade244d89e715ceedbbe814d1c126ac423ffda;p=redmine.git Merged r14883 (#16948). git-svn-id: http://svn.redmine.org/redmine/branches/2.6-stable@14916 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- 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 }