Add additional promote_users checks. Show Add existing button only for multisite. Don't show bulk actions if user can't promote users. Show add new user menu if user has create_users but not promote_users. Props nacin. fixes #16501 for trunk

git-svn-id: http://svn.automattic.com/wordpress/trunk@17431 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan
2011-02-09 17:30:26 +00:00
parent 3cd43bf6b8
commit ba47c80ef7
4 changed files with 20 additions and 5 deletions

View File

@@ -132,6 +132,8 @@ class WP_Users_List_Table extends WP_List_Table {
function extra_tablenav( $which ) {
if ( 'top' != $which )
return;
if ( ! current_user_can( 'promote_users' ) )
return;
?>
<div class="alignleft actions">
<label class="screen-reader-text" for="new_role"><?php _e( 'Change role to&hellip;' ) ?></label>