Changeset 6571 for trunk/src/includes/replies/capabilities.php
- Timestamp:
- 06/16/2017 07:45:05 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/replies/capabilities.php
r6438 r6571 43 43 * @uses get_post_type_object() To get the post type object 44 44 * @uses bbp_get_public_status_id() To get the public status id 45 * @uses bbp_is_user_forum_moderator() To check if the user is a forum moderator 46 * @uses bbp_get_reply_forum_id() To get the repliy forum id 45 * @uses bbp_get_reply_forum_id() To get the reply forum id 47 46 * @uses apply_filters() Filter mapped results 48 47 * … … 181 180 // Moderators can always edit forum content 182 181 } elseif ( user_can( $user_id, 'moderate', $_post->ID ) ) { 183 182 $caps = array( 'spectate' ); 184 183 185 184 // Unknown so map to delete_others_posts … … 205 204 206 205 case 'bbp_replies_admin' : 207 $caps = array( ' moderate' );206 $caps = array( 'edit_replies' ); 208 207 break; 209 208 }
Note: See TracChangeset
for help on using the changeset viewer.