-
Notifications
You must be signed in to change notification settings - Fork 56
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
Feature Request: Improved roles support #151
Comments
Hi @DaWoblefet, Regarding your first request, for now, we will not add it to the settings page. About the menu item, you should use our custom user capability |
I checked and our "editor" role does not have that capability. I ran a Just from a quick look through the codebase, it appears that if the
|
Fixed by #205 |
Love the tool! I have a couple feature requests. First, it would be nice to be able to toggle permissions for the plugin in the tool's settings, as a convenience feature instead of hooking into the
aal_init_roles
filter. Just a QoL thing.Second, when using the
aal_init_roles
filter, it doesn't actually hide the plugin from the user in the menubar. It does restrict their access, but it'd be nice to properly remove the plugin when they don't have the correct role. So instead of:it's more like this, where it's not displayed at all:
This is the associated code snippet I'm using to model the behavior above. Of course, this would need to be adjusted to handle what roles are actually allowed.
The text was updated successfully, but these errors were encountered: