PDA

View Full Version : Other Admins can't make new admins


PaulBearer2k
12-10-2002, 09:28 PM
What I want is that only one admin can actually create other admins. Other administrators will not be able to do so unless you select there userid in ftp or something. Is it possible?

Xenon
12-10-2002, 09:45 PM
well, yes it's doable,
you have to edit user.php and usergroup.php

in user.php it's easy:

find:// ###################### Start do update #######################
if ($HTTP_POST_VARS['action']=="doupdate") {

below add:

if ($bbuserinfo[userid]!=1 and $userid!=$bbuserinfo[userid] and $usergroupid==6) {
echo "You cannot make this user an Admin";
exit;
}

this should work, but he can also creat a new user, org give a whole usergroup adminpermissions...