Make WordPress Core

Changeset 16184


Ignore:
Timestamp:
11/04/2010 04:27:18 PM (14 years ago)
Author:
ryan
Message:

Check create_users cap. see #14435

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

Legend:

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

    r16183 r16184  
    2020$menu[10] = array(__('Users'), 'manage_network_users', 'users.php', '', 'menu-top menu-icon-users', 'menu-users', 'div');
    2121$submenu['users.php'][5]  = array( __('Users'), 'manage_network_users', 'users.php' );
    22 $submenu['users.php'][10]  = array( __('Add New'), 'manage_network_users', 'user-new.php' );
     22$submenu['users.php'][10]  = array( __('Add New'), 'create_users', 'user-new.php' );
    2323
    2424$menu[15] = array(__('Themes'), 'manage_network_themes', 'themes.php', '', 'menu-top menu-icon-appearance', 'menu-appearance', 'div');
  • trunk/wp-admin/network/user-new.php

    r16183 r16184  
    1515    wp_die( __( 'Multisite support is not enabled.' ) );
    1616
    17 if ( ! current_user_can('manage_network_users') )
     17if ( ! current_user_can('create_users') )
    1818    wp_die(__('You do not have sufficient permissions to add users to this network.'));
    1919
Note: See TracChangeset for help on using the changeset viewer.