From 58257374477bef2c4db64ff74c19756f7588fffd Mon Sep 17 00:00:00 2001 From: Akita Noek Date: Mon, 2 May 2016 11:27:37 -0400 Subject: [PATCH] Reduce JT read access check to simple read_role check --- awx/main/access.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/awx/main/access.py b/awx/main/access.py index bd27bbd6a3..66e8e5e463 100644 --- a/awx/main/access.py +++ b/awx/main/access.py @@ -729,8 +729,7 @@ class JobTemplateAccess(BaseAccess): 'credential', 'cloud_credential', 'next_schedule').all() def can_read(self, obj): - # you can only see the job templates that you have permission to launch. - return self.can_start(obj, validate_license=False) + return self.user in obj.read_role def can_add(self, data): '''