-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Elimination of an hierarchal based permissions system #9
Comments
This needs more research. Modmail purely relies on a hierachal based system, but there are no permissions checks involved. Ideally there is a system of both. Permission checks are primarily used, alongside with hierarchy checks. I'm considering copying the owner system (e.g. users have access to certain commands based on rank), but probably no owner rank as owner checks are possible. |
Having thought about this for some time, I'm looking to structure it with three different hierarchies:
These three will be used to check whether an command can be ran or not. Perms and role hierarchy checks will also be applied to the bot itself |
After some thinking and implementation, I am NOT doing an internal modmail-based hierarchy check at all, due to these reasons:
Ultimately, permission checks with an built-in hierarchy check is what's going to be implemented. The checks are based off of R. Danny's checks, and have been modified to inject permission extras into the command so we can display what permissions are needed for what commands. If R. Danny can survive with 9,000+ servers with these checks, Rodhaj will also |
Analyzing ModMail, the purpose of said system is to have access to some "owner-level" commands. Namely:
?alias
?block
?unblock
alias
is eliminated as slash commands are employed, and do not allow the creation of aliased slash commands.block
andunblock
is effectively a role/user blacklist, which permission can be given to the admins directly. And the main commands can be given the relevant permissions or have no permissions to begin with. By eliminating this decrepit system, we gain the benefits of the modern permissions system.Note that the help command is not needed. The slash commands provide documentation and guidance on how to use said command.
The text was updated successfully, but these errors were encountered: