Changeset 16990 for trunk/wp-admin/includes/class-wp-users-list-table.php
- Timestamp:
- 12/16/2010 08:43:22 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-users-list-table.php
r16900 r16990 26 26 27 27 function check_permissions() { 28 if ( ! current_user_can('list_users') )29 wp_die( __('Cheatin’ uh?'));30 31 if ( $this->is_site_users && ! current_user_can('manage_sites') )32 wp_die(__( 'You do not have sufficient permissions to edit this site.'));28 if ( ! $this->is_site_users && ! current_user_can( 'list_users' ) ) 29 wp_die( __( 'Cheatin’ uh?' ) ); 30 31 if ( $this->is_site_users && ! current_user_can( 'manage_sites' ) ) 32 wp_die(__( 'You do not have sufficient permissions to edit this site.' ) ); 33 33 } 34 34
Note: See TracChangeset
for help on using the changeset viewer.