The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to check User permissions in user.php
Hello,
I'm trying to make a modification in user.php (/admincp/user.php) so that only Super Admins can delete users. Now, forgive me, I'm not very familiar with how to check if the current USER (not the current USERID you're looking it) is a Super Admin, or of a certain userid. So far, I have: Code:
if ($vbulletin->GPC['userid'] == 5) { $quicklinks["user.php?" . $vbulletin->session->vars['sessionurl'] . "do=remove&u=" . $vbulletin->GPC['userid']] = $vbphrase['delete_user']; } Anyone have any suggestions for a beginner vbulletin editor/modder? Thanks in advance! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|