vB4 Normal Admin Can't Delete User

  • Downloading from our site will require you to have a paid membership. Upgrade to a Premium Membership today!

    Dont forget read our Rules! Also anyone caught Sharing this content will be banned. By using this site you are agreeing to our rules so read them. Saying I did not know is simply not an excuse! You have been warned.

Radio

    ven0m

    Administrator
    Staff member
    Administrator
    Moderator
    Platinum
    xenForo 2.x.x
    xenForo 1.x.x
    Contributor
    vBulletin All Access Pass
    The Chest
    Verified
    Ultra Platinum VIP
    Platinum VIP
    Gold VIP
    Silver VIP
    Premium
    Member
    Jul 17, 2005
    20,497
    7,735
    321
    localhost
    Heisenberg submitted a new resource:

    - Normal Admin Can't Delete User

    vB Version: 4.x.x

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

    Instructions

    Download and open admincp/user.php file

    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...

     
    Last edited:
    Thread starter Similar threads Forum Replies Date
    ven0m vB4 SubNav Bar Admin and Mod tools [4.x.x] Temp Mods 0
    Similar threads