diff --git a/api/tacticalrmm/core/models.py b/api/tacticalrmm/core/models.py index 9f5499119f..363803a5c5 100644 --- a/api/tacticalrmm/core/models.py +++ b/api/tacticalrmm/core/models.py @@ -131,15 +131,13 @@ def save(self, *args, **kwargs) -> None: old_settings = type(self).objects.get(pk=self.pk) if self.pk else None - print(old_settings.__dict__) - # fail safe to not lock out user logons - if not old_settings.sso_enabled and old_settings.block_local_user_logon: - self.block_local_user_logon = False - print("I'm Here!") - super().save(*args, **kwargs) if old_settings: + # fail safe to not lock out user logons + if not old_settings.sso_enabled and old_settings.block_local_user_logon: + self.block_local_user_logon = False + if ( old_settings.alert_template != self.alert_template or old_settings.server_policy != self.server_policy