mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-20 08:33:03 +02:00
Only the webmaster can modify webmaster's permissions
git-svn-id: http://piwigo.org/svn/trunk@190 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
+5
-1
@@ -128,7 +128,11 @@ if ( mysql_num_rows( $result ) > 0 )
|
||||
//----------------------------------------------------------------------- users
|
||||
$query = 'SELECT id,username,status';
|
||||
$query.= ' FROM '.PREFIX_TABLE.'users';
|
||||
$query.= " WHERE username != '".$conf['webmaster']."'";
|
||||
// only the webmaster can modify webmaster's permissions
|
||||
if ( $user['username'] != $conf['webmaster'] )
|
||||
{
|
||||
$query.= " WHERE username != '".$conf['webmaster']."'";
|
||||
}
|
||||
$query.= ';';
|
||||
$result = mysql_query( $query );
|
||||
while ( $row = mysql_fetch_array( $result ) )
|
||||
|
||||
Reference in New Issue
Block a user