View Full Version : Restrict Usergroup Changing in the CP to only certain users
Robert9
05-18-2003, 06:08 PM
How do I make it so that in my Admin CP when you edit a user, only certain people are allowed to change the usergroup of the user?
Or what it be possible to hide the settings for it based on the userid's that are allowed?
Xenon
05-18-2003, 06:28 PM
why make them admins whe you don't trust em?
that's the first mistake you can do...
if you just want them to edit users and just special usergroups, not all you can use my mods can edit users hack
Robert9
05-18-2003, 07:01 PM
I trust my admins, this is for security reasons, and so that they can't move everybody around.
Instead of this in the user.php in the admin folder:
makeinputcode("User Group","usergroupid","usergroup",$user[usergroupid]);
I currently have this:
if ($bbuserinfo[userid]!=1 && $bbuserinfo[userid]!=4)
{
makeinputcode("User Group","usergroupid","usergroup",$user[usergroupid]);
}
But it doesnt show up for the specified users.... how do i get it to work?
Robert9
05-18-2003, 07:05 PM
Today at 08:28 PM Xenon said this in Post #2 (https://vborg.vbsupport.ru/showthread.php?postid=396821#post396821)
why make them admins whe you don't trust em?
that's the first mistake you can do...
if you just want them to edit users and just special usergroups, not all you can use my mods can edit users hack
Ok... On second thought, how do i restrict the other admins from putting more admins into the usergroup?
Robert9
05-18-2003, 07:49 PM
I got it to restrict it... How do i make it so that the admin groups are removed from the list?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.