Make WordPress Core


Ignore:
Timestamp:
04/22/2010 07:48:13 PM (16 years ago)
Author:
josephscott
Message:

New 'list_users' cap to provide more controls over listing users vs. editing
users.

Apply this new cap to the 'Authors & Users' menu item and 'Users' page in
wp-admin.

Bump db version to 14139 to pick up the new cap.

See #13074

File:
1 edited

Legend:

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

    r14178 r14189  
    1313require_once( ABSPATH . WPINC . '/registration.php');
    1414
    15 if ( !current_user_can('edit_users') )
     15if ( !current_user_can('list_users') )
    1616    wp_die(__('Cheatin’ uh?'));
    1717
Note: See TracChangeset for help on using the changeset viewer.