Support » Plugin: W3 Total Cache » Allow Editors to flush Cache from toolbar

  • 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!

  • The topic ‘Allow Editors to flush Cache from toolbar’ is closed to new replies.