Changeset 6559 for trunk/src/includes/admin/forums.php
- Timestamp:
- 06/16/2017 03:14:59 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/admin/forums.php
r6438 r6559 414 414 415 415 // What is the user doing here? 416 if ( ! current_user_can( ' keep_gate', $forum_id ) ) {416 if ( ! current_user_can( 'edit_forum', $forum_id ) ) { 417 417 wp_die( __( 'You do not have permission to do that.', 'bbpress' ) ); 418 418 } … … 680 680 681 681 // Only show the actions if the user is capable of viewing them :) 682 if ( current_user_can( ' keep_gate', $forum->ID ) ) {682 if ( current_user_can( 'edit_forum', $forum->ID ) ) { 683 683 684 684 // Show the 'close' and 'open' link on published, private, hidden and closed posts only
Note: See TracChangeset
for help on using the changeset viewer.