]> source.dussan.org Git - redmine.git/commitdiff
Redmine.pm errors when cloning public project (#16948).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 24 Nov 2015 20:59:13 +0000 (20:59 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 24 Nov 2015 20:59:13 +0000 (20:59 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@14883 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
 }