fix allow roles edit and delete members

This commit is contained in:
Denis Baranov
2018-05-31 08:28:27 +03:00
parent 0b21ba4139
commit 7977d69c5d
3 changed files with 80 additions and 80 deletions
+3 -3
View File
@@ -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'];