• Resolved rkatibian

    (@rkatibian)


    I’m trying to edit the settings for asset clean up, but I get this message when clicking on it. I currently have an administrator role and have added the code to my functions.php file as the site said, but it still won’t let me access it. Here’s the message I’m getting :

    Sorry, you are not allowed to access this page.

    Asset CleanUp requires “administrator” role and the ability to activate plugins in order to access its pages.
    Your current role(s): administrator

    The value (in green color) can be changed if you use the following snippet in functions.php (within your theme/child theme or a custom plugin):

    add_filter('wpacu_access_role', function($role) { return 'your_role_here'; });

    If the snippet is not used, it will default to “administrator”.

    Possible values: manage_optionsactivate_pluginsmanager etc.

    Read more: https://www.ads-software.com/support/article/roles-and-capabilities/#summary-of-roles

Viewing 1 replies (of 1 total)
  • Plugin Author Gabe Livan

    (@gabelivan)

    @rkatibian first, my sincere apologies for not getting back to you sooner! Better now, than never! I’ve been working hard in the past weeks to release a new version of Asset CleanUp and this includes a way to add/remove users (non-admins) that could access the Asset CleanUp area.

    If you upgrade to the latest version, go to “Settings” — “Plugin Usage Preferences” — “Plugin Access” and add the non-admin that should have access to the plugin area. No more hardcoded PHP snippets!

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