Project

General

Profile

Redmine.pm and admin rights to whole SVN

Added by Igor Olemskoi (Southbridge) over 16 years ago

I'm using Redmine.pm/mod_perl with apache22 for SVN authorization.

How to allow users with administrator privileges to access any svn repository?

Thanks!


Replies (1)

RE: Redmine.pm and admin rights to whole SVN - Added by Nicolas Chuche over 16 years ago

You can't. For the moment, to access repository through Redmine.pm, user must be a member of the project.

If you really want to do that, you can modify the query in extra/svn/Redmine.pm with something like that :

  my $query = "SELECT 
                 hashed_password, auth_source_id 
              FROM members, projects, users 
              WHERE 
                ((projects.id=members.project_id AND users.id=members.user_id) OR ( users.admin = TRUE ))
                AND users.status=1 
                AND login=? 
                AND identifier=? ";
    (1-1/1)