Resolved, but there has to be a cleaner way that what I’ve done.
Someone in the #wordpress IRC helped me write this for my theme functions.php:
/* No one but moi can see edit-comments.php. */
add_action( 'admin_init', 'check_auth' );
function check_auth() {
if ( strpos($_SERVER['REQUEST_URI'], 'edit-comments') > 0 && !current_user_can( 'manage_options' ) ) {
wp_redirect( 'wp-admin/edit.php' );
}
}
And I’ve just used CMS Press to hide the custom post type menu item from displaying at all. Now my Editor level users can only access/moderate comments from the edit post page that they belong to. If a comment to the custom post type needs to be edited/deleted, I’ll just access edit-comments.php myself and do a search for it.
(@justbishop)
15 years, 11 months ago
I have normal blog posts and posts to a custom post type called “Feedback”. Is there a way to keep my Editor/Author/etc. level users from being able to moderate comments to “Feedback” posts on the Comment moderation menu, while still allowing them access to the normal blog post comment moderation actions?