Commit 0f8aacaf authored by jplang's avatar jplang

Redmine.pm errors when cloning public project (#16948).

git-svn-id: https://svn.redmine.org/redmine/trunk@14883 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent a877ce08
......@@ -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
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment