Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi Sheer,

    I am facing exactly the same issue. Did you found any fix successfully on this, if so, could you share please.

    Thanks ??

    Thread Starter SheerHeartAttack

    (@sheerheartattack)

    I wasn’t able to do anything using this plugin. Instead, I’m using WP Hide Dashboard to prevent subscribers from accessing the dashboard, and the following code in my theme’s functions.php for all non-admins:

    add_action( 'admin_menu', 'my_remove_menu_pages' );
    
    function my_remove_menu_pages() {
    	// If the user does not have access to publish posts
    	if(!current_user_can('manage_options')) {
    		// Remove menus
    		remove_menu_page('index.php');
    	}
    }

    It won’t actually prevent them from getting to the Dashboard if they have the direct URL, but it removes the menu option. That was the best I was able to come up with. Hope it helps =)

    Thanks, This would be my fallback option.

    I am kind of hopeful to find a solution with this plugin itself to avoid exposing dashboard with direct URLs.

    Also, I saw that ‘user profile’ part is possible to open up for non-admins. Hope that could be the case for upload-media as well.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Non-admin cannot access post editor/media upload?’ is closed to new replies.