From 9179441ca5218589aa84f1e0b411f49687398c1a Mon Sep 17 00:00:00 2001 From: Holger Just Date: Tue, 24 Nov 2015 14:04:57 +0100 Subject: [PATCH] Set user to empty string in Redmine.pm for anonymous SVN access --- extra/svn/Redmine.pm | 8 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/extra/svn/Redmine.pm b/extra/svn/Redmine.pm index 832ba5e..c3607c3 100644 --- a/extra/svn/Redmine.pm +++ b/extra/svn/Redmine.pm @@ -333,10 +333,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 } -- 2.6.2