wp-media / adminimize

Adminimize is a WordPress plugin that lets you hide 'unnecessary' items from the WordPress backend.
https://wordpress.org/plugins/adminimize/
GNU General Public License v2.0
100 stars 31 forks source link

Admin only access #122

Open LufoX11 opened 4 years ago

LufoX11 commented 4 years ago

Hi. I have multiple users with admin role, so I installed a plugin (User Role Editor) to clone this role and modify it, so these users will still be able to perform admin actions but they won't have full access to all admin options. So, the main user role has "Administrator" role and the other "admin" ones have (let's say) "Administrator-light" role.

The problem is that they can still see Settings->Adminimize. I'd like to have a config option to only show this config panel to certain users. Would it be possible?

Thank you and nice plugin!

bueltge commented 4 years ago

Remove on the Administrator Light role the manage options capabiloand it should work.

LufoX11 commented 4 years ago

The managa option will remove a lot of admin functionality that I need them to keep. Maybe a more specific permission? I don't know why this plugin (User Role Editor) can identify permissions from some plugins, but not all of them.

bueltge commented 4 years ago

The plugin identity the permissions from each menu item. But lot of plugins use the default item, like manage_options and so it give no difference between the seetings of plugins.

bueltge commented 4 years ago

I mean the solid way is to add a custom capability, on default add to the Administrator role and change them inside the plugin.