Fix edit profile permission

This commit is contained in:
champsupertramp
2016-06-29 09:14:59 +08:00
parent 431ef54026
commit 688cc267c0
+1 -1
View File
@@ -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') );
}