Role Modification Admin Notice Problem
-
In the client-dash.php file, whether or not a message to update “Display Settings” (due to role modifications) is determined by whether the user has manage_options capability. Can this be modified so that it’s determined by whether the user has both manage_options and activate_plugins capability?
In my case, I’ve created a custom role (which I’ve called site_admin) who can access some admin level settings (for example, they can see custom plugin menu items), but I don’t want them to be able to change the Client Dash settings (or else they could override the hidden menu items). But because they have manage_options capability, they see an error message they’re unable to fix (since they don’t have the activate_plugins capability needed to be able to change the display settings)
I could technically change it on my end, but I’d be breaking a primary rule of plugin modifications – try not to modify a plugin directly because the changes will be lost when the next update is released.
Thanks so much for your time and have a great afternoon!
The topic ‘Role Modification Admin Notice Problem’ is closed to new replies.