• Resolved matthewdhuntley

    (@matthewdhuntley)


    Hi Password Policy & Complexity Requirements Folks,
    I would like to restrict Users with a certain role from making changes to the Password Policy & Complexity Requirements settings. Oftentimes, when I want to restrict Users from making changes to certain plugin settings, I use the Members plugin to Deny the users a Capability that is tied to the plugin in question. Could you please advise if the Password Policy & Complexity Requirements plugin comes with a specific Capability and/or if there is another means by which I can restrict Users of a certain role from making changes to the settings?
    Thanks,
    Matthew Huntley

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Bartosz Gadomski

    (@bartoszgadomski)

    Hi Matthew, thanks for your question!

    In order to change the plugin’s settings, users must have either manage_options capability (on single site installation) or manage_network_options (on multisite installation). We don’t use custom capabilities currently.

    Is that ok for your use case, or would you rather we use a custom capability instead?

    Thread Starter matthewdhuntley

    (@matthewdhuntley)

    Hi @bartoszgadomski,
    Thank you very much for the prompt reply. Ideally, we would use a Custom capability, as we would like our Site Mangagers to continue to be able to edit the site Settings, just not the settings for the Password Policy & Complexity Requirements plugin (we would only like Super Admins and Site Admins to have this privilege).
    Do you think this Custom capability is something could be added in later versions?
    Best regards,
    Matthew Huntley

    Plugin Author Teydea Studio

    (@teydeastudio)

    Hi Matthew!

    Thank you for sharing the extra context.

    Do you think this Custom capability is something could be added in later versions?

    Absolutely! I’ll add that to our engineering backlog, and will post an update in this thread as soon as this is released.

    Plugin Contributor Bartosz Gadomski

    (@bartoszgadomski)

    Hi Matthew!

    We released an update that introduces a custom capabilities for managing the plugin’s settings:

    • password_requirements__manage_options?for single site installations,
    • password_requirements__manage_network_options?for network installations.

    These capabilities will be automatically assigned to the users with administrator roles and to Super Admins (in case of the network installations) after updating the plugin to the recent version. You can use these plugin-specific capabilities to adjust which roles can access and edit the plugin’s settings.

    Let me know if that meets your needs!

    With regards,
    Bartosz

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