Delete own posts
-
Hello,
I get an issue with the bbPress capabilities. My forum Participants are set with edit_replies, delete_replies, edit_topics, delete_topics capabilities, but they can not delete their own posts because the links are not displayed. Keymasters and Moderators have no problem since they are moderators on the whole forum.
So I checked the code in ./includes/topics/capabilities.php and includes/replies/capabilities.php and added the code below to fix the issue:
./includes/topics/capabilities.php, line 174 and
./includes/replies/capabilities.php, line 156// Moderators can always edit forum content } elseif ( user_can( $user_id, 'moderate' ) ) { $caps[] = 'moderate'; // -------------------------------- // User is author so allow edit if not in admin } elseif ( !is_admin() && ( (int) $user_id === (int) $_post->post_author ) ) { $caps[] = $post_type->cap->delete_posts; // -------------------------------- // Unknown so map to delete_others_posts
So my question is: is this intended ? Otherwise is there a fix planned for a next update?
Thank you for your help.
Regards.
- You must be logged in to reply to this topic.