PDA

View Full Version : Weighted Permissions for Usergroups


Consortias
08-17-2016, 07:26 AM
Hello,

I am wondering if there is a way to add a "weight" to certain usergroups to prevent them from editing groups higher than them.

For Example, I want to give a "Global Moderator" access to Admin CP, and I want them to have access to edit users, but I do not want them to have the ability to edit any user who is in a usergroup ranked above them. So they would not be able to edit "Administrator" accounts.

alcazarx
08-17-2016, 04:52 PM
A simple (but not suggested) solution would be to set admin accounts as "$config['SpecialUsers']['undeletableusers']" in the config.php .

Else you would need sort of plugin which checks if the user to be edited is an admin and if yes and you're not then no edit.
We only have a plugin to control which "administrator" (any user with ACP access) can manage which group (i. e. only guests, users, banned, vip etc).