WordPress hide pages in dashboard

I want to know if there’s a way to hide pages that do not belong to the logged in user in the dashboard?
I’ve been looking at capabilities, but as far as I can see I can only restrict interaction with pages not owned by the logged in user.

Thanks

Related posts

Leave a Reply

1 comment

  1. You have to create a new user role and define it’s capabilities for the user roles.

    add_role( 'photo_uploader', 'Photo Uploader', array( 'view_galleries' ) );
    // remove "view_galleries" to this role object
    $role->remove_cap( 'photo_uploader', 'view_galleries' );
    

    Check more about custom user roles and capabilities here.

    If you are looking for easier and faster solution you can do that using the following plugin

    http://wordpress.org/plugins/members/