• Resolved fatjester

    (@fatjester)


    The plugin works great, but we have a need to allow users other than admins to have access. You are currently hardcoding the current_user_can(‘administrator’) throughout to manage access.

    Could this be changed to a custom capability so that people could allow for non admins to be given access?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Aaron

    (@aaron13100)

    Not currently.

    Are you looking for this person to have full access to the plugin? i.e. they can create and delete redirects, including entering a regular expression which can potentially break the website?

    • This reply was modified 1 year, 6 months ago by Aaron.
    Thread Starter fatjester

    (@fatjester)

    A good question. More capabilities for various features would be nice in the long run, but I understand that would be a lot of work and would require more planning.

    For now a single capability instead of a hard coded role would suffice as it wouldn’t impact the default plugin in any way (where you would give the capability to the administrator by default) except to give developers a way to expand access to other roles.

    I don’t mind taking the risk of users breaking things if I give them access to so – as it is now, I either need to give them full admin access or I need to fork your plugin (which I’ve done for now), both of which have the same risk.

    Plugin Author Aaron

    (@aaron13100)

    Have you tried the “Controlled Admin Access” plugin or a different one?

    Plugin Author Aaron

    (@aaron13100)

    In version 2.32.0 I added a section to the advanced options called “Plugin Admin Users” where you can list usernames that will have admin access to the plugin.

    Let me know how that goes when you have time.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Other than Admin role?’ is closed to new replies.