W3 Total Cache
Allow Editors to flush Cache from toolbar (1 post)

  1. Borko
    Posted 2 years ago #

    I'm not comfortable opening up an admin acc for my client so i'm looking for a way to make visible (and functional) the Performance option in the toolbar. I already added the list_users capability (among few others) to Editors (via User Role Editor plugin) because my client needed the ability to manage users. I can make the option i want accesible to Editors by adding manage_options capability to Editors. BUT,that makes the "Settings" tabs visible to Editors.
    Here's the question,finally.

    I noticed you manage the access rights by using:
    if (current_user_can('manage_options')
    If i change that in /wp-content/plugins/w3-total-cache/lib/W3/Plugin/TotalCache.php to if (current_user_can('list_users') it starts showing the Performance options in the toolbar but still the editors don't have enough permissions to actually clear the cache.
    Should i continue replacing the codes where needed or i could actually break the plugin or cause a security risk?

    Thanks in advance!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • W3 Total Cache
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic