Changeset 43085 for trunk/src/wp-admin/includes/ajax-actions.php
- Timestamp:
- 05/02/2018 01:07:00 AM (8 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/includes/ajax-actions.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/ajax-actions.php
r43061 r43085 4345 4345 } 4346 4346 4347 if ( ! current_user_can( ' manage_options' ) ) {4347 if ( ! current_user_can( 'export_others_personal_data' ) ) { 4348 4348 wp_send_json_error( __( 'Invalid request.' ) ); 4349 4349 } … … 4523 4523 } 4524 4524 4525 if ( ! current_user_can( 'delete_users' ) ) { 4525 // Both capabilities are required to avoid confusion, see `_wp_personal_data_removal_page()`. 4526 if ( ! current_user_can( 'erase_others_personal_data' ) || ! current_user_can( 'delete_users' ) ) { 4526 4527 wp_send_json_error( __( 'Invalid request.' ) ); 4527 4528 }
Note: See TracChangeset
for help on using the changeset viewer.