Changeset 5627
- Timestamp:
- 03/06/2015 04:16:31 PM (11 years ago)
- Location:
- trunk/src/includes/admin
- Files:
-
- 2 edited
-
admin.php (modified) (2 diffs)
-
converter.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/admin/admin.php
r5566 r5627 704 704 } 705 705 706 // Bail if user cannot moderate - only moderators can change hierarchy 707 if ( ! current_user_can( 'moderate' ) ) { 708 wp_die( '0' ); 709 } 710 706 711 // Check the ajax nonce 707 712 check_ajax_referer( 'bbp_suggest_topic_nonce' ); … … 732 737 // Bail early if no request 733 738 if ( empty( $_REQUEST['q'] ) ) { 739 wp_die( '0' ); 740 } 741 742 // Bail if user cannot moderate - only moderators can change authorship 743 if ( ! current_user_can( 'moderate' ) ) { 734 744 wp_die( '0' ); 735 745 } -
trunk/src/includes/admin/converter.php
r5571 r5627 303 303 */ 304 304 public function process_callback() { 305 306 // Bail if user cannot view import page 307 if ( ! current_user_can( 'bbp_tools_import_page' ) ) { 308 wp_die( '0' ); 309 } 305 310 306 311 // Verify intent
Note: See TracChangeset
for help on using the changeset viewer.