diff --git a/awx/main/models/jobs.py b/awx/main/models/jobs.py index c14f60963c..b58995edbc 100644 --- a/awx/main/models/jobs.py +++ b/awx/main/models/jobs.py @@ -1092,7 +1092,8 @@ class SystemJobTemplate(UnifiedJobTemplate, SystemJobOptions): @property def notifiers(self): - base_notifiers = Notifier.objects.filter(active=True) + # TODO: Go through RBAC instead of calling all(). Need to account for orphaned Notifiers + base_notifiers = Notifier.objects.all() error_notifiers = list(base_notifiers.filter(unifiedjobtemplate_notifiers_for_errors__in=[self])) success_notifiers = list(base_notifiers.filter(unifiedjobtemplate_notifiers_for_success__in=[self])) any_notifiers = list(base_notifiers.filter(unifiedjobtemplate_notifiers_for_any__in=[self]))