WordPress.org

Ready to get started?Download WordPress

Forums

Audit Trail
Fix for administrator in multisite installs (1 post)

  1. Gabriel Reguly
    Member
    Posted 2 years ago #

    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 in

    function 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

    http://wordpress.org/extend/plugins/audit-trail/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

  • RSS feed for this topic
  • Started 2 years ago by Gabriel Reguly
  • This topic is not resolved
  • WordPress version: 3.2.1