mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
fix allow roles edit and delete members
This commit is contained in:
@@ -25,9 +25,9 @@ function um_action_request_process() {
|
||||
}
|
||||
}
|
||||
|
||||
if ( isset( $_REQUEST['um_action'] ) && $_REQUEST['um_action'] != "edit" && ! current_user_can( 'edit_users' ) ) {
|
||||
wp_die( __( 'You do not have enough permissions to do that.','ultimate-member') );
|
||||
}
|
||||
// if ( isset( $_REQUEST['um_action'] ) && $_REQUEST['um_action'] != "edit" && ! current_user_can( 'edit_users' ) ) {
|
||||
// wp_die( __( 'You do not have enough permissions to do that.','ultimate-member') );
|
||||
// }
|
||||
|
||||
if ( isset( $_REQUEST['uid'] ) ) {
|
||||
$uid = $_REQUEST['uid'];
|
||||
|
||||
Reference in New Issue
Block a user