mirror of
https://github.com/meineerde/redmine.git
synced 2026-02-06 09:03:25 +00:00
Redmine.pm errors when cloning public project (#16948).
git-svn-id: http://svn.redmine.org/redmine/trunk@14883 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
24e2f46419
commit
928ac47246
@ -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
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user