mirror of
https://github.com/ansible/awx.git
synced 2026-01-16 04:10:44 -03:30
Prevent job can_change from erroneously firing license validation.
This commit is contained in:
parent
d21de4c99f
commit
6717d4f3fa
@ -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):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user