Ignore:
Timestamp:
Oct 9, 2003, 9:39:59 PM (21 years ago)
Author:
z0rglub
Message:

Only the webmaster can modify webmaster's permissions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/cat_perm.php

    r168 r190  
    129129$query = 'SELECT id,username,status';
    130130$query.= ' FROM '.PREFIX_TABLE.'users';
    131 $query.= " WHERE username != '".$conf['webmaster']."'";
     131// only the webmaster can modify webmaster's permissions
     132if ( $user['username'] != $conf['webmaster'] )
     133{
     134  $query.= " WHERE username != '".$conf['webmaster']."'";
     135}
    132136$query.= ';';
    133137$result = mysql_query( $query );
Note: See TracChangeset for help on using the changeset viewer.