aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--admin/cat_perm.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/admin/cat_perm.php b/admin/cat_perm.php
index f77a01f0b..ac63e3b6e 100644
--- a/admin/cat_perm.php
+++ b/admin/cat_perm.php
@@ -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 ) )