Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I want to setup a user account that only has access to moderate comments - for all posts - but doesn't have access to edit any posts.

When I give the user the moderate comments privilege (using an old role manager plugin), it doesn't let them moderate comments on other articles.

Is there a plugin that does this, or something I'm doing wrong?

share|improve this question
add comment

1 Answer 1

up vote 2 down vote accepted

Probably not the answer you want to hear, but I'm afraid that is not possible as a user needs the edit_posts Capability in order to access the moderate_comments capability.

(source: http://codex.wordpress.org/Roles_and_Capabilities#moderate_comments)

share|improve this answer
    
I can give the user edit_posts as well, but they still can't edit comments from other users. It seems that you can only do it with edit_others_posts. –  The How-To Geek Apr 15 '11 at 1:38
    
I went through the code, and it appears there's no hook to fix this, at least not without a lot of hacking. –  The How-To Geek Apr 15 '11 at 1:50
    
You can use the load-edit-comments.php and load-comment.phpaction hook to callback a function that will add the edit_others_posts capabilities to the current user so it will allow the edit-comments.php and comment.php to load correctly , and then remove this at capability form the current user at admin_footer action hook so this capability is only valid for comment moderation screens. –  Bainternet Apr 15 '11 at 2:18
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.