![]() |
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) Anyone have any suggestions for a beginner vbulletin editor/modder? Thanks in advance! |
So, I know you want to improve security, but can your other admins use plugins? Run SQL queries? Modify Admin permissions? Modify templates, phrases, user titles, etc?
|
I think what you want is:
PHP Code:
|
Quote:
Thanks kh99, I'll see if that works when I get home. |
All times are GMT. The time now is 04:49 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|