fix bug where sms attempting to be sent when not configured
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user