0001-Set-user-to-empty-string-in-Redmine.pm-for-anonymous.patch

Holger Just, 2015-11-24 14:50

Download (913 Bytes)

View differences:

extra/svn/Redmine.pm
333 333

  
334 334
  my $project_id = get_project_identifier($r);
335 335

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

  
339 341
  return OK
340 342
}
341
-