mirror of
https://github.com/ansible/awx.git
synced 2026-02-27 07:56:06 -03:30
Allow SA's to read all notification templates
This commit is contained in:
@@ -1375,6 +1375,8 @@ class NotificationTemplateAccess(BaseAccess):
|
||||
|
||||
@check_superuser
|
||||
def can_read(self, obj):
|
||||
if self.user.is_superuser or self.user.is_system_auditor:
|
||||
return True
|
||||
if obj.organization is not None:
|
||||
return self.user in obj.organization.admin_role
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user