Changeset 7489 for trunk/src/includes/admin/forums.php
- Timestamp:
- 09/11/2026 09:03:14 PM (4 weeks ago)
- File:
-
- 1 edited
-
trunk/src/includes/admin/forums.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/admin/forums.php
r7386 r7489 231 231 */ 232 232 public function attributes_metabox() { 233 234 // Bail if the current user cannot edit forum structure 235 if ( ! current_user_can( 'assign_moderators' ) ) { 236 return; 237 } 238 233 239 add_meta_box( 234 240 'bbp_forum_attributes', … … 341 347 } 342 348 349 // Bail if current user cannot edit forum structure 350 if ( ! current_user_can( 'assign_moderators' ) ) { 351 return $forum_id; 352 } 353 343 354 // Parent ID 344 355 $parent_id = ( ! empty( $_POST['parent_id'] ) && is_numeric( $_POST['parent_id'] ) ) … … 386 397 387 398 // What is the user doing here? 388 if ( ! current_user_can( ' edit_forum', $forum_id ) ) {399 if ( ! current_user_can( 'manage_forum_attributes', $forum_id ) ) { 389 400 wp_die( esc_html__( 'You do not have permission to do that.', 'bbpress' ) ); 390 401 }
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)