Make WordPress Core


Ignore:
Timestamp:
06/05/2006 04:52:21 PM (18 years ago)
Author:
ryan
Message:

Add more fine grained user management caps. Part 1. #2775

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/user-edit.php

    r3839 r3846  
    3535check_admin_referer('update-user_' . $user_id);
    3636
    37 if (!current_user_can('edit_users'))
     37if ( !current_user_can('edit_user', $user_id) )
    3838    $errors = new WP_Error('head', __('You do not have permission to edit this user.'));
    3939else
     
    5050$profileuser = new WP_User($user_id);
    5151
    52 if (!current_user_can('edit_users'))
     52if ( !current_user_can('edit_user', $user_id) )
    5353    if ( !is_wp_error( $errors ) )
    5454        $errors = new WP_Error('head', __('You do not have permission to edit this user.'));
Note: See TracChangeset for help on using the changeset viewer.