Normal Admin Can't Delete User

Discussion in 'vBulletin 4.x Template Modifications' started by ExploitMaker, Feb 17, 2017.

  1. ExploitMaker

    ExploitMaker Registered Registered

    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.
     

Share This Page