mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
settings: Remove realm-level default of enable_login_emails setting.
This commit does not remove the 'enable_login_emails' field from RealmUserDefault table but it is just not used and cannot be changed from UI or API similar to 'enable_marketing_emails' setting.
This commit is contained in:
@@ -62,12 +62,10 @@ function get_realm_level_notification_settings(options) {
|
||||
realm_user_settings_defaults,
|
||||
);
|
||||
|
||||
// We remove enable_marketing_emails setting from all_notification_settings, since there is no
|
||||
// realm-level default of this setting.
|
||||
all_notifications_settings.settings.other_email_settings = [
|
||||
"enable_digest_emails",
|
||||
"enable_login_emails",
|
||||
];
|
||||
// We remove enable_marketing_emails and enable_login_emails
|
||||
// setting from all_notification_settings, since there are no
|
||||
// realm-level defaults for these setting.
|
||||
all_notifications_settings.settings.other_email_settings = ["enable_digest_emails"];
|
||||
|
||||
options.general_settings = all_notifications_settings.general_settings;
|
||||
options.notification_settings = all_notifications_settings.settings;
|
||||
|
||||
Reference in New Issue
Block a user