Quantcast
Channel: WordPress.org Forums » [W3 Total Cache] Support
Viewing all articles
Browse latest Browse all 19300

Media X on "[Plugin: W3 Total Cache] Allow Editors to flush Cache from toolbar"

$
0
0

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!


Viewing all articles
Browse latest Browse all 19300

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>