Change WordPress user roles and capabilities › Forums › How to or FAQ › Per Plugin For Roles Not Working For Me
- This topic has 10 replies, 2 voices, and was last updated 5 years, 8 months ago by joelpeterson.
26/09/2017 at 21:02 #4213
Love this plugin… ok I have an issue.
I’ve watched your video and read the settings like 100 times now on per plugin for role as I want to just make a few plugins accessible for our clients to activate or deactivate.
I’ve created a special Site Admin role which is a copy of Administrator and it has Activate Plugins enabled.
And then I went to the Plugins box on the right and selected about 5 plugins I want them to have access to….
But they still have access to everything.
Is there some other capability I have turned on that is over-riding this?
It should work…. ggrrrr 🙂27/09/2017 at 01:00 #4215
Check if you granted access to URE capabilities for this role by mistake. It should not have access to the ‘ure_manage_options’, ‘ure_edit_roles’ and especially to ‘ure_plugins_activation_access’ capability as it allow to change settings and restrictions you made.27/09/2017 at 05:24 #421727/09/2017 at 05:30 #4219
I wonder how this capability could appear in your roles, but it never should be granted to any role apparently. WordPress uses ‘do_not_allow’ capability when it decides to prohibit required permission. Try to revoke ‘do_not_allow’ from this role. Will it change something?27/09/2017 at 06:14 #4220
Thanks… it wasn’t that one… I had wondered about that one before. I just tried it but no luck.
So as a test I tested it with Subscriber and just activate_plugins and read enabled and it works….so it must be one of those other options….I guess I’ll have to check them one by one 🙂
Interesting though… the plugin WP-Rocket will not hide. I also just tried a plugin called Hide Plugins and the same thing WP-Rocket would not hide. Very weird.
Joel27/09/2017 at 06:36 #4221
Check also if some capability was assigned to the test user directly, not via roles.
If you provide me a copy of WP Rocket plugin (via Dropbox, or similar) I can look, why it’s not blocked and try to find a workaround.27/09/2017 at 12:35 #4224
Here is a link….let me know after you download it
[ … ]
Still troubleshooting which one of those options is preventing access….. no luck yet.
Joel27/09/2017 at 13:43 #4225
Got it. Thank you.27/09/2017 at 14:20 #4227
I installed WP Rocket and recorded a demo video. It shows that:
1) I blocked access to WP Rocket successfully;
2) a copy of administrator role without URE capabilities works with “per plugin access” add-on as expected.
In could be a conflict with some plugin in your case. Try to deactivate plugins and re-test with different plugins subset also.27/09/2017 at 14:22 #4228
Restrictions for plugins may be set as for role, as at user profile. Re-check is you don’t have any other settings for plugins access at this user profile.27/09/2017 at 14:23 #4229
Wow thanks so much 🙂
I’ll double check everything. And yes it could be another plugin conflict going on here.
- You must be logged in to reply to this topic.