svnusers admin right
Administer Subversion repository access rights easily
Brought to you by:
tom_krieger
Hello,
there seems to have been a change in the database in some release.
In our case, the “admin” field in the “svnusers” table is filled with y and n everywhere, sometimes also p(?).
Also “n” is set as the default in the database.
However, if you edit or create a new user, the admin flag is always set to YES.
In the file “templates/workOnUser.tpl” if( $tAdministrator == 0 )
is queried and a 0 or 1 is written to the DB accordingly.
In “workOnUser.php”, however, $tAdministrator = “n”;
is set
I have changed it there to $tAdministrator = 0;
and fixed the entries in the DB via SQL command, which should actually be done by the update script.
best regards
Maik
I had a look at the code and it seems that “y” and “n” are still used everywhere, and in some cases “p” is also queried.
So rather this one place where
if( $tAdministrator == 0 )
is queried and then the drop-down either 0 or 1 is written to the DB is not correct