WordPress.org

Make WordPress Core

Changeset 16970


Ignore:
Timestamp:
12/15/10 19:24:42 (3 years ago)
Author:
westi
Message:

More caps back. See #15326

Location:
trunk/wp-admin/network
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/network/site-themes.php

    r16833 r16970  
    1313if ( ! is_multisite() ) 
    1414    wp_die( __( 'Multisite support is not enabled.' ) ); 
     15 
     16$menu_perms = get_site_option( 'menu_items', array() ); 
     17 
     18if ( empty( $menu_perms['themes'] ) ) { 
     19    if ( !is_super_admin() ) 
     20        wp_die( __( 'Cheatin’ uh?' ) ); 
     21} 
     22 
     23if ( !current_user_can('manage_sites') ) 
     24    wp_die( __( 'You do not have sufficient permissions to manage themes for this site.' ) ); 
    1525 
    1626$wp_list_table = get_list_table('WP_MS_Themes_List_Table'); 
  • trunk/wp-admin/network/themes.php

    r16272 r16970  
    1313if ( ! is_multisite() ) 
    1414    wp_die( __( 'Multisite support is not enabled.' ) ); 
     15 
     16$menu_perms = get_site_option( 'menu_items', array() ); 
     17 
     18if ( empty( $menu_perms['themes'] ) ) { 
     19    if ( !is_super_admin() ) 
     20        wp_die( __( 'Cheatin’ uh?' ) ); 
     21} 
     22 
     23if ( !current_user_can('manage_network_themes') ) 
     24    wp_die( __( 'You do not have sufficient permissions to manage network themes.' ) ); 
    1525 
    1626$wp_list_table = get_list_table('WP_MS_Themes_List_Table'); 
Note: See TracChangeset for help on using the changeset viewer.