Merge pull request #1566 from ultimatemember/fix/can_edit_profile

Fixes can edit profile for Administrator
This commit is contained in:
Mykyta Synelnikov
2024-10-11 13:31:59 +03:00
committed by GitHub
+1 -1
View File
@@ -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;
}