[Plugin: Audit Trail] Fix for administrator in multisite installs
-
Hi,
When using audit trail with multisite only super-admins have access to it.
To fix it for site administrators one should add
current_user_can('administrator')
as infunction admin_menu() { if ( current_user_can( 'edit_plugins' ) || current_user_can( 'audit_trail' ) || current_user_can('administrator') )
function admin_screen() { if ( !current_user_can( 'edit_plugins' ) && !current_user_can( 'audit_trail' ) && !current_user_can('administrator'))
I don’t know if it was by design or not, but that was the solution for my issue.
Regards,
Gabriel
- The topic ‘[Plugin: Audit Trail] Fix for administrator in multisite installs’ is closed to new replies.