Changeset 14189 for trunk/wp-admin/includes/template.php
- Timestamp:
- 04/22/2010 07:48:13 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/includes/template.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/template.php
r14176 r14189 1813 1813 $checkbox = ''; 1814 1814 // Check if the user for this row is editable 1815 if ( current_user_can( ' edit_user', $user_object->ID ) ) {1815 if ( current_user_can( 'list_users', $user_object->ID ) ) { 1816 1816 // Set up the user editing link 1817 1817 // TODO: make profile/user-edit determination a separate function … … 1825 1825 // Set up the hover actions for this user 1826 1826 $actions = array(); 1827 $actions['edit'] = '<a href="' . $edit_link . '">' . __('Edit') . '</a>'; 1827 1828 if ( current_user_can('edit_user', $user_object->ID) ) 1829 $actions['edit'] = '<a href="' . $edit_link . '">' . __('Edit') . '</a>'; 1828 1830 if ( !is_multisite() && $current_user->ID != $user_object->ID && current_user_can('delete_user', $user_object->ID) ) 1829 1831 $actions['delete'] = "<a class='submitdelete' href='" . wp_nonce_url("users.php?action=delete&user=$user_object->ID", 'bulk-users') . "'>" . __('Delete') . "</a>";
Note: See TracChangeset
for help on using the changeset viewer.