Extra cap checks. See #15326.
git-svn-id: https://develop.svn.wordpress.org/trunk@16222 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
1626139659
commit
85952766d3
@ -8,7 +8,9 @@
|
||||
|
||||
/** WordPress Administration Bootstrap */
|
||||
require_once('./admin.php');
|
||||
|
||||
if ( !current_user_can('edit_posts') )
|
||||
wp_die(__('Cheatin’ uh?'));
|
||||
|
||||
$wp_list_table = get_list_table('WP_Comments_List_Table');
|
||||
$wp_list_table->check_permissions();
|
||||
|
||||
|
@ -8,7 +8,9 @@
|
||||
|
||||
/** WordPress Administration Bootstrap */
|
||||
require_once('./admin.php');
|
||||
|
||||
if ( !current_user_can( $tax->cap->manage_terms ) )
|
||||
wp_die( __( 'Cheatin’ uh?' ) );
|
||||
|
||||
$wp_list_table = get_list_table('WP_Terms_List_Table');
|
||||
$wp_list_table->check_permissions();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user