Support » Plugin: Client Dash » Cant add plugin access to client role

  • Resolved ts1wl

    (@ts1wl)


    I have setup a client login but cannot give them access to any plugins which they require to use – in fact the only role that can access them is the administrator role. How can I assign access to plugins to other roles?

    – The plugin is upto date
    – Tried with default twentynineteen theme
    – Tried disabling all plugins

Viewing 2 replies - 1 through 2 (of 2 total)
  • For anyone with the same issue, this is a wordpress feature by design. The plugins were only accessible by the admin role thus not showing under the client options.

    WPFront User Role Editor – I used this to ammend the roles.

    Plugin Author d4mation

    (@d4mation)

    Ah, yes, did you send this in on our website’s support form as well?

    I’ll copy my response from there to here in case it helps anyone else:

    This is most likely due to these plugin menus requiring a WordPress Capability that your Client User Role does not posses, such as manage_options (Which is often reserved for only the Administrator Role).

    https://codex.wordpress.org/Roles_and_Capabilities

    This is unfortunately not something that Client Dash itself can address at this time as it is specific to every plugin in whether or not they make the required capability easily changeable or not (Whether via defining a Constant in wp-config.php, using a Filter, etc.). In this case you may also need to use something like the option_page_capability_{$option_page} Filter if the page you’re granting access to is something like /wp-admin/options-general.php?page={some_page} in order to ensure that they can still save changes on these pages.

    https://developer.wordpress.org/reference/hooks/option_page_capability_option_page/

    You could alternatively utilize the map_meta_cap Filter to “temporarily” grant your Client User Role the additional capability only when viewing these special pages (Which can be helpful if it is not something that the plugin developers made changeable).

    https://elicus.com/use-of-map-meta-cap-wordpress-filter/

    If you need to grant your Client User Role an additional Capability, you can use a plugin like https://wordpress.org/plugins/user-role-editor/ to add or remove any Capabilities necessary to make these menus work properly for your Users.

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