Changeset 16992 for trunk/wp-admin/includes/class-wp-plugins-list-table.php
- Timestamp:
- 12/16/2010 09:18:28 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-plugins-list-table.php
r16990 r16992 28 28 } 29 29 30 function check_permissions() {30 function ajax_user_can() { 31 31 if ( is_multisite() ) { 32 32 $menu_perms = get_site_option( 'menu_items', array() ); 33 33 34 34 if ( empty( $menu_perms['plugins'] ) && ! is_super_admin() ) 35 wp_die( __( 'Cheatin’ uh?' ) ); 36 } 37 38 if ( !current_user_can('activate_plugins') ) 39 wp_die( __( 'You do not have sufficient permissions to manage plugins for this site.' ) ); 35 return false; 36 } 37 38 return current_user_can('activate_plugins'); 40 39 } 41 40
Note: See TracChangeset
for help on using the changeset viewer.