• Resolved filster

    (@rocketmarket)


    Hi,
    I use the plugin “Client Dash” to manage my client dashboard and I have an issue with your plugin. Even if I put my client as “Editor”, I still got “Sorry, you are not allowed to access this page.” on your plugin.
    I try to fix it with plugins like “user role editor” but all this plugins created conflict with “client Dash”.

    Can you help me? do you have a trick to upgrade/allow more role than just the administrator to use your plugin?

    Thank you!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author algol.plus

    (@algolplus)

    hi

    does this plugin modify menus inside /wp-admin/ ?

    please, edit main file of my plugin.
    find
    function woe_check_running_options() {
    add below it
    return true;

    thanks, Alex

    Thread Starter filster

    (@rocketmarket)

    Hi Alex,

    thank you for the reply, but it seems not working:
    I put it like this line 31 & line 43: (one or the other or both=not working)

    if( ! function_exists("woe_check_running_options") ) {
    	function woe_check_running_options() {
    		<strong>return true;</strong>
    		$is_backend           = is_admin();
    		$is_cron              = defined( 'DOING_CRON' );
    		$is_frontend_checkout = isset( $_REQUEST['wc-ajax'] ) && $_REQUEST['wc-ajax'] === 'checkout'
    						|| isset( $_POST['woocommerce_checkout_place_order'] )
    						|| preg_match( '/\bwc\-api\b/', filter_input( INPUT_SERVER, 'REQUEST_URI' ) );
    		return $is_backend || $is_cron || $is_frontend_checkout;
    	}
    }		
    if ( ! woe_check_running_options() ) {
    	<strong>return true;

    “does this plugin modify menus inside /wp-admin/ ?”
    Not sure to understand the question, but I can say that the plugin “client dash” doesn’t modify capabilities, only the “skin” dashboard

    Thread Starter filster

    (@rocketmarket)

    update:
    I restored my database and “client dash” before their massive update, and it works!

    so the problem seems coming from their plugin!

    Thank you, I’ll use this version for now and will ask their support further

    Plugin Author algol.plus

    (@algolplus)

    user must have capability “view_woocommerce_reports”

    Plugin Author algol.plus

    (@algolplus)

    try something like this to add this capability

    add_action( '_admin_menu', function() {
        $user = get_role( 'editor' );
        if ( ! $user->has_cap( 'view_woocommerce_reports' ) ) {
            $user->add_cap( 'view_woocommerce_reports' );
        }
    });
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Role capabilities’ is closed to new replies.