- Timestamp:
- 12/16/2010 09:18:28 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-ms-themes-list-table.php
r16990 r16992 37 37 } 38 38 39 function check_permissions() {39 function ajax_user_can() { 40 40 $menu_perms = get_site_option( 'menu_items', array() ); 41 41 42 42 if ( empty( $menu_perms['themes'] ) && ! is_super_admin() ) 43 wp_die( __( 'Cheatin’ uh?' ) );43 return false; 44 44 45 45 if ( $this->is_site_themes && !current_user_can('manage_sites') ) 46 wp_die( __( 'You do not have sufficient permissions to manage themes for this site.' ) );46 return false; 47 47 elseif ( !$this->is_site_themes && !current_user_can('manage_network_themes') ) 48 wp_die( __( 'You do not have sufficient permissions to manage network themes.' ) ); 48 return false; 49 return true; 49 50 } 50 51
Note: See TracChangeset
for help on using the changeset viewer.