echelon
echelon copied to clipboard
Echelon admins can promote players to super admin
If an echelon admin can change user levels they can change the ingame level of a user to any valid group. Including superadmin. Need to add a way to control the maximum group level an admin can change someone to.
Maybe make it so that only site admins can change or create superadmins, only senior admins and above can add/change admins and only admins and above can add/change moderators
This is what I was thinking. The only hesitation I had is I'd really liked the fact that it was reading B3 groups and useing those for the names/field changes, and I don't want to hardcode the change. So for now what you have above is definetly happening, but I'd still like to find an easy way to allow a more variable approach.
Maybe another field in the ech_groups table that has the max level that group can set. Then an if statement that checks if the group in the for loop has a level equal to or below that max level value?