From 8083ad4e99a661b6997c31cfa3ac1af1071934ac Mon Sep 17 00:00:00 2001 From: ashubawork Date: Wed, 30 Apr 2025 12:02:03 +0300 Subject: [PATCH] - fix change email permissions --- includes/core/class-account.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/core/class-account.php b/includes/core/class-account.php index be3891e0..4ba9085a 100644 --- a/includes/core/class-account.php +++ b/includes/core/class-account.php @@ -676,8 +676,8 @@ if ( ! class_exists( 'um\core\Account' ) ) { $args = 'user_login,user_email'; } - if ( ! UM()->options()->get( 'account_email' ) && ! um_user( 'can_edit_everyone' ) ) { - $args = str_replace(',user_email','', $args ); + if ( ! UM()->options()->get( 'account_email' ) ) { + $args = str_replace( ',user_email', '', $args ); } if ( $this->current_password_is_required( $id ) ) {