XenForo Nulled Community

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

  • This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Normal Admin Can't Delete User

#1
Superadmins (from config.php file) can delete users but, normal admins can NOT delete users.

Edit
"admincp/user.php"

1.Find
Code:
if ($_REQUEST['do'] == 'remove')
{
Add below
Code:
if (!in_array($vbulletin->userinfo['userid'], preg_split('#\s*,\s*#s', $vbulletin->config['SpecialUsers']['superadministrators'], -1, PREG_SPLIT_NO_EMPTY)))
{
    print("Normal admin cannot delete users");
}
else
{
2.Find
Code:
// ###################### Start edit #######################
Add above
Code:
}
Feel free and edit
"print("Normal admin cannot delete users");" to how you like.
 

Similar threads

Similar threads