Forums

WP-Ad-Manager
WP Ad Manager menu not showing for editors (3 posts)

  1. lipsk
    Member
    Posted 1 year ago #

    Hi

    I've set WP-Ad-Manager user access to "editor"
    (The minimum User Level required to access Ad-minister: editor)

    But the editors can't see the menu.
    I'm running a WP3 multisites install. Could it be the problem?

  2. valentinas
    Member
    Posted 1 year ago #

    Hi, this part of plugin is not working yet. need to change the user level in menu function. Will implement that for next version. if you need this urgently - let me know, i can give you modified version.

  3. lipsk
    Member
    Posted 1 year ago #

    Hi Valentinas

    Thank you. There's no hurry, I'll wait for the next version.

    It's working after I changed this code

    // Add administration menu
    function wpam_admin_menu() {
    if ( current_user_can('manage_options') ) {
    add_menu_page( 'WP-Ad-Manager', 'WP-Ad-Manager', 'manage_options', dirname(plugin_basename (__FILE__)), 'administer_main' );
    }
    }

    To this

    // Add administration menu
    function wpam_admin_menu() {
    if ( current_user_can('moderate_comments') ) {
    add_menu_page( 'WP-Ad-Manager', 'WP-Ad-Manager', 'moderate_comments', dirname(plugin_basename (__FILE__)), 'administer_main' );
    }
    }

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic