WickedShell / echelon

http://echelon.bigbrotherbot.net
14 stars 7 forks source link

Echelon admins can promote players to super admin #36

Open WickedShell opened 13 years ago

WickedShell commented 13 years ago

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.

82ndab-Bravo17 commented 13 years ago

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

WickedShell commented 13 years ago

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.

FrikFry commented 13 years ago

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?