Defect #16948 ยป 0001-Set-user-to-empty-string-in-Redmine.pm-for-anonymous.patch
| extra/svn/Redmine.pm | ||
|---|---|---|
|
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
|
||
|
}
|
||