WordPress.org

Make WordPress Core

Changeset 16892


Ignore:
Timestamp:
12/13/2010 12:08:27 PM (7 years ago)
Author:
westi
Message:

Add cap checks. do the action in php. See #15793

File:
1 edited

Legend:

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

    r16891 r16892  
    216216</form>
    217217
    218 do_action( 'network_site_users_after_list_table', '' );
    219 
    220 <?php if ( apply_filters( 'show_network_site_users_add_existing_form', true ) ) : ?>
     218<?php do_action( 'network_site_users_after_list_table', '' );?>
     219
     220<?php if ( current_user_can( 'promote_users' ) && apply_filters( 'show_network_site_users_add_existing_form', true ) ) : ?>
    221221<h3 id="add-existing-user"><?php _e('Add Existing User') ?></h3>
    222222<p><?php _e( 'Enter the username of an existing user on this network.' ) ?></p>
     
    248248<?php endif; ?>
    249249
    250 <?php if ( apply_filters( 'show_network_site_users_add_new_form', true ) ) : ?>
     250<?php if (  current_user_can( 'create_users' ) && apply_filters( 'show_network_site_users_add_new_form', true ) ) : ?>
    251251<h3 id="add-new-user"><?php _e('Create New User') ?></h3>
    252252<p><?php _e( 'Create a brand new user and add it to this site.' ) ?></p>
Note: See TracChangeset for help on using the changeset viewer.