]> source.dussan.org Git - redmine.git/commitdiff
Merged r14883 (#16948).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 4 Dec 2015 12:47:42 +0000 (12:47 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 4 Dec 2015 12:47:42 +0000 (12:47 +0000)
git-svn-id: http://svn.redmine.org/redmine/branches/2.6-stable@14916 e93f8b46-1217-0410-a6f0-8f06a7374b81

extra/svn/Redmine.pm

index 1ec0576459f6f9a34b6b4d79235048a6a28d6250..8b7fe158fb3f2a9db5204e12f2df72482b5d4c98 100644 (file)
@@ -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
 }