fix bug where sms attempting to be sent when not configured

This commit is contained in:
wh1te909
2021-07-17 06:35:31 +00:00
parent 6138a5bf54
commit 2dfaafb20b

View File

@@ -194,7 +194,7 @@ class CoreSettings(BaseAuditModel):
return True
def send_sms(self, body, alert_template=None):
if not alert_template and not self.sms_is_configured:
if not alert_template or not self.sms_is_configured:
return
# override email recipients if alert_template is passed and is set