Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: New role – admin access #3334
    arjualeb
    Participant

    Works now.

    As we can se in class-wc-admin.php there we have the condition:
    if ( ‘yes’ === get_option( ‘woocommerce_lock_down_admin’, ‘yes’ ) && ! is_ajax() && basename( $_SERVER[“SCRIPT_FILENAME”] ) !== ‘admin-post.php’ && ! current_user_can( ‘edit_posts’ ) && ! current_user_can( ‘manage_woocommerce’ ) ) {
    $prevent_access = true;
    }

    where woocommerce_lock_down_admin is deprecated and defaults to yes in all cases. So what would actually be necessary to allow a user to edit posts or manage woocommerce so the backend works.
    Perhaps you include your filter in the next version of the role editor plugin os it works for all people without custom code.

    in reply to: New role – admin access #3332
    arjualeb
    Participant

    Yes, I’m using WooCommerce.

    I added ‘view_admin_dashboard’ capability to to this role, but it will still redirect me to the frontend.

    I currently have this enabled for the role:
    Edit others shop orders
    Edit shop orders
    Read
    Read private shop orders
    Read shop order
    View admin dashboard

    in reply to: Cannot access admin menu settings with pro plugin #1527
    arjualeb
    Participant

    Hi,

    other buttons in plugin seem to work.
    This is what I get in console.
    Uncaught SyntaxError: Unexpected token < users.php:1
    Uncaught SyntaxError: Unexpected token < users.php:1

Viewing 3 posts - 1 through 3 (of 3 total)