Ticket #16293: 16293.2.diff
File 16293.2.diff, 631 bytes (added by , 12 years ago) |
---|
-
users.php
97 97 check_admin_referer( 'deleteuser' ); 98 98 99 99 $id = intval( $_GET['id'] ); 100 if ( $id != '0' && $id != '1' ) { 100 $user = get_userdata( $id ); 101 if ( ! is_super_admin( $id ) || ( $user->user_email != get_site_option( 'admin_email' ) && get_current_user_id() != $id && count( get_super_admins() ) > 1 ) ) { 101 102 $_POST['allusers'] = array( $id ); // confirm_delete_users() can only handle with arrays 102 103 $title = __( 'Users' ); 103 104 $parent_file = 'users.php';