Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author P?r Thernstr?m

    (@eskapism)

    I can’t reproduce that here. If I am a user with author role then I get the message “You do not have sufficient permissions to access this page.” if I try to view the Simple History page, and it is not visible in the menu.

    If you still have this problem please provide some more info, like screenshots + make sure you don’t have any other plugins installed that possible could interfere with roles and/or capabilities.

    Thread Starter JibsouX

    (@jibsoux)

    This one is for me .. sorry it’s editor role .. :p

    it will be a good thing to add in setting something like choose which role can view the menu (checkbox)

    $current_user = new WP_User(wp_get_current_user()->id);
    $user_roles = $current_user->roles;
    foreach($user_roles as $role) {
    	if (($role == 'subscriber') OR ($role == 'author') OR ..... ) {
    
    The plugin code
    
    }

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Wrong capability for sub-menu dashboard !!’ is closed to new replies.