Merge pull request #1684 from ultimatemember/fix/change_account_email

Change email permissions
This commit is contained in:
Mykyta Synelnikov
2025-04-30 13:57:27 +03:00
committed by GitHub
+1 -1
View File
@@ -676,7 +676,7 @@ if ( ! class_exists( 'um\core\Account' ) ) {
$args = 'user_login,user_email';
}
if ( ! UM()->options()->get( 'account_email' ) && ! um_user( 'can_edit_everyone' ) ) {
if ( ! UM()->options()->get( 'account_email' ) ) {
$args = str_replace( ',user_email', '', $args );
}