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 i change that in
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!