Skip to content

Commit 928ac47

Browse files
committed
Redmine.pm errors when cloning public project (#16948).
git-svn-id: http://svn.redmine.org/redmine/trunk@14883 e93f8b46-1217-0410-a6f0-8f06a7374b81
1 parent 24e2f46 commit 928ac47

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

extra/svn/Redmine.pm

+4-2
Original file line numberDiff line numberDiff line change
@@ -332,8 +332,10 @@ sub access_handler {
332332

333333
my $project_id = get_project_identifier($r);
334334

335-
$r->set_handlers(PerlAuthenHandler => [\&OK])
336-
if is_public_project($project_id, $r) && anonymous_allowed_to_browse_repository($project_id, $r);
335+
if (is_public_project($project_id, $r) && anonymous_allowed_to_browse_repository($project_id, $r)) {
336+
$r->user("");
337+
$r->set_handlers(PerlAuthenHandler => [\&OK]);
338+
}
337339

338340
return OK
339341
}

0 commit comments

Comments
 (0)