The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/printthread.php 16 require_once



UserSpice
New Admin group, user blocked when updating user - Printable Version

+- UserSpice (https://userspice.com/forums)
+-- Forum: Support Center (https://userspice.com/forums/forumdisplay.php?fid=23)
+--- Forum: UserSpice 4.3 and Below (https://userspice.com/forums/forumdisplay.php?fid=26)
+--- Thread: New Admin group, user blocked when updating user (/showthread.php?tid=1175)



New Admin group, user blocked when updating user - lordtopcat - 10-16-2018

Hi there,

I've created another group called "Junior Admins".

I've added a test user to this group, but every time the test user attempts to edit a standard user, they are blocked!! 

I've tested various different permissions, even adding EVERYTHING to this new permission group, and they still get blocked.

Have I missed something?

Cheers,
Jamie


RE: New Admin group, user blocked when updating user - lordtopcat - 10-17-2018

Figured it out:

I am using hasPerm to "hide" some of the fields the junior admins can edit, but because the validation was still happening, I think it was blocking the user each time they updated it.

I've added hasPerm to all of the validation logic that involves the "hidden" fields, and it is now working :-)


RE: New Admin group, user blocked when updating user - Brandin - 10-17-2018

Another thing to be considerate of, is there is a built in Protected Profile feature that anyone outside of the Master Account array cannot edit profiles that are protected, or are within the master account array. Protected can be toggled in the top right of admin_user.php by someone in the master account array only.