mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-11 18:56:10 +09:00
- fixed editing of other members profile for administrator
This commit is contained in:
@@ -60,7 +60,7 @@ if ( ! class_exists( 'um\frontend\User_Profile' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
if ( ! um_can_edit_my_profile() ) {
|
||||
if ( um_is_myprofile() && ! um_can_edit_my_profile() ) {
|
||||
um_safe_redirect( um_edit_my_profile_cancel_uri() );
|
||||
exit;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user