• Hey Matthew,

    Awesome plugin, I’ve been using it myself. Very efficient and easy to use. I modified it a bit to add more security though, as the current version does restriction on the front end only, but not the back-end. If you paste a link with the id of the post you want to edit, you’ll be able to do so no matter what category restriction you have.

    I used something like this, for both edit a post and add a new post in conjunction with Justin Tadlock’s Members:

    add_action('load-post.php', 'rc_check_restriction');
    add_action('load-post-new.php', 'rc_check_restriction');
    
    function rc_check_restriction()  {
        if (!current_user_can('edit_category_movies'))
            wp_die(__('Look what you have done!'));
    }

    It’d be amazing if this additional security could be included in a later version so others could benefit as well

    http://wordpress.org/extend/plugins/restrict-categories/

  • The topic ‘Back-end check for permission to edit post in category’ is closed to new replies.