From 688cc267c04814bd6085cc0cc24c2f1290cbf283 Mon Sep 17 00:00:00 2001 From: champsupertramp Date: Wed, 29 Jun 2016 09:14:59 +0800 Subject: [PATCH] Fix edit profile permission --- core/um-actions-core.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/um-actions-core.php b/core/um-actions-core.php index f9c4d42c..ae4aa1c0 100644 --- a/core/um-actions-core.php +++ b/core/um-actions-core.php @@ -17,7 +17,7 @@ wp_die('Super administrators can not be modified.'); } - if ( isset( $_REQUEST['um_action'] ) && ! current_user_can( 'edit_users' ) ){ + 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.','ultimatemember') ); }