• Resolved ingoratsdorf

    (@ingoratsdorf)


    When I log in as a user that has an “Editor” role, the dashboard does not load, all I can see is the admin bar and any item clicked on there reloads the wordpress home page with the admin bar again.
    If I log out and back in as Admin, all works correctly.

    If I disable the plugin and log in ad an “editor” role user, all works as well.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter ingoratsdorf

    (@ingoratsdorf)

    Found the issue in acf_ele_form/module.php:

    /**
    * Redirect non-admin users to home page
    *
    * This function is attached to the ‘admin_init’ action hook.
    */
    public function redirect_non_admin_users() {
    global $current_user;
    if ( ! current_user_can( ‘manage_options’ ) && ! get_user_meta( $current_user->ID, ‘show_admin_area’, true ) ) {
    add_filter( ‘show_admin_bar’, ‘__return_false’ );
    wp_redirect( home_url() );
    exit;
    }
    }

    Why are you redirecting non-admin users back to the homepage? You are breaking any other user role than admins!

    Cheers,
    Ingo

    Plugin Author Shabti Kaplan

    (@shabti)

    You’re absolutely right. This was in order to give you the ability to choose whether new users should see the wp dashboard.

    However, we should have left it to show on default and only if you change it to hide. Will update the plugin today. Thank you for using our plugin and for the feedback

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Non-Admin users cannot see the WP Dashboard’ is closed to new replies.