Support » Plugin: Members - Membership & User Role Editor Plugin » New user role cannot access dashboard?

  • Resolved Lewis Elborn

    (@beaniie)


    I’ve created a new role in this plugin, and it’s specifically for a custom post type.

    function editing_wpcargo_shipment_capability($args, $post_type){
      if ('wpcargo_shipment' === $post_type) {
        $args['map_meta_cap'] = true;
        $args['capability_type'] = 'wpcargo_shipment';
      }
      return $args;
    }
    

    But despite having the read permission set to granted. Users with this role still cannot access the admin area. Help please? I’m tearing my hair out.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Caseproof

    (@caseproof)

    Hi @beaniie

    In order to get access to admin area, users need to have at least Read Posts and Pages permissions as well as Read and Edit Dashboard permissions from the General section of Role Manager. If that doesn’t work, I’d check if some other plugin doesn’t block access to WordPress dashboard.

    Kind regards

    Thread Starter Lewis Elborn

    (@beaniie)

    @caseproof, you were spot on! I discovered last week that another plugin was actively redirecting all users without the administrator role. I had to make edits to that plugin’s files to get it to work properly. That or disable the plugin entirely.

    Thanks again.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.