UPD: split enable_email settings.

This commit is contained in:
2018-12-20 16:41:38 +01:00
parent c804ff2b61
commit 66365cadee
4 changed files with 7 additions and 5 deletions

View File

@@ -130,7 +130,7 @@ class BasicWorkflow(object):
updater = kwargs.get('user')
app_config = apps.get_containing_app_config(__package__)
if not app_config.settings.enable_email_notifications:
if not app_config.settings.enable_email_on_update:
return
if len(diff) < 1:
@@ -160,7 +160,7 @@ class BasicWorkflow(object):
updater = flag.user
app_config = apps.get_containing_app_config(__package__)
if not app_config.settings.enable_email_notifications:
if not app_config.settings.enable_email_on_status_update:
return
if flag.status.code == 'submitted':