From 6717d4f3fabbe731818eacc15b9d7b62ffbf6f49 Mon Sep 17 00:00:00 2001 From: Aaron Tan Date: Thu, 27 Oct 2016 15:24:03 -0400 Subject: [PATCH] Prevent job can_change from erroneously firing license validation. --- awx/main/access.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/awx/main/access.py b/awx/main/access.py index 07c25c237a..442cbcc895 100644 --- a/awx/main/access.py +++ b/awx/main/access.py @@ -1221,7 +1221,8 @@ class JobAccess(BaseAccess): return True def can_change(self, obj, data): - return obj.status == 'new' and self.can_read(obj) and self.can_add(data) + return obj.status == 'new' and self.can_read(obj) and\ + self.can_add(data, validate_license=False) @check_superuser def can_delete(self, obj):