Change WordPress user roles and capabilities Forums How to or FAQ Per Plugin For Roles Not Working For Me

Tagged: 

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #4213
    joelpeterson
    Participant

    Hi Guys,

    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.

    Restrict plugins available for activation/deactivation

    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 🙂

    #4215
    Vladimir
    Keymaster

    Hi,

    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.

    #4217
    joelpeterson
    Participant

    Thanks….ya I have all of those NOT checked but it still gives me the issue.

    Here is a screenshot of everything I have checked…. do you see anything that would be an issue here?

    09.26.2017-23.23.30

    Thanks so much.

    Joel

    #4219
    Vladimir
    Keymaster

    Joel,

    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?

    #4220
    joelpeterson
    Participant

    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.

    Thanks,

    Joel

    #4221
    Vladimir
    Keymaster

    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.

    #4224
    joelpeterson
    Participant

    Oh Thanks….

    Here is a link….let me know after you download it

    [ … ]

    Still troubleshooting which one of those options is preventing access….. no luck yet.

    Thanks,

    Joel

    #4225
    Vladimir
    Keymaster

    Got it. Thank you.

    #4227
    Vladimir
    Keymaster

    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.

    #4228
    Vladimir
    Keymaster

    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.

    #4229
    joelpeterson
    Participant

    Wow thanks so much 🙂

    I’ll double check everything. And yes it could be another plugin conflict going on here.

    Thanks,

    Joel

Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.