mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
Fix edit profile permission
This commit is contained in:
@@ -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') );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user