Title: Cant Access As Admin
Last modified: May 22, 2020

---

# Cant Access As Admin

 *  Resolved [tcadmin86](https://wordpress.org/support/users/tcadmin86/)
 * (@tcadmin86)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/cant-access-as-admin-2/)
 * I am an administrator that can not access Asset Cleanup and it is breaking pages
   on my site. All I get when trying to access any setting tabs is the following.
   I have added the snippet to functions.php as well with no luck.
 * 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_options, activate_plugins, manager etc.
 * Read more: [https://wordpress.org/support/article/roles-and-capabilities/#summary-of-roles](https://wordpress.org/support/article/roles-and-capabilities/#summary-of-roles)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Gabe Livan](https://wordpress.org/support/users/gabelivan/)
 * (@gabelivan)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/cant-access-as-admin-2/#post-12875695)
 * [@tcadmin86](https://wordpress.org/support/users/tcadmin86/) thanks for reporting
   a potential bug! Besides the “administrator” role which you have, the plugin 
   also uses `current_user_can('activate_plugins')` – can you double-check if you
   can do that? I mean, if your admin rights were changed in any way, it could have
   led to this error. Do you recall installing any plugins that would change roles
   for users? Did you have this problem from the moment you installed Asset CleanUp
   for the first time?
 *  Plugin Author [Gabe Livan](https://wordpress.org/support/users/gabelivan/)
 * (@gabelivan)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/cant-access-as-admin-2/#post-12900940)
 * [@tcadmin86](https://wordpress.org/support/users/tcadmin86/) how it’s going? 
   Any news about this? Do you still have the same problem? Let me know, please,
   as I’m keen to fix it!
 *  Plugin Author [Gabe Livan](https://wordpress.org/support/users/gabelivan/)
 * (@gabelivan)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/cant-access-as-admin-2/#post-12994330)
 * [@tcadmin86](https://wordpress.org/support/users/tcadmin86/) As this seems to
   be an isolated case and I haven’t heard back from you, I’ll mark this topic as“
   resolved”. Please write back on this topic in case you still have the issue (
   make sure to update to the latest version of the plugin as well).

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Cant Access As Admin’ is closed to new replies.

 * ![](https://ps.w.org/wp-asset-clean-up/assets/icon-256x256.png?rev=1981952)
 * [Asset CleanUp: Page Speed Booster](https://wordpress.org/plugins/wp-asset-clean-up/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-asset-clean-up/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-asset-clean-up/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-asset-clean-up/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-asset-clean-up/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-asset-clean-up/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Gabe Livan](https://wordpress.org/support/users/gabelivan/)
 * Last activity: [6 years, 2 months ago](https://wordpress.org/support/topic/cant-access-as-admin-2/#post-12994330)
 * Status: resolved