mirror of
https://github.com/ansible/awx.git
synced 2026-05-16 22:07:36 -02:30
Fix typo, modify can_update to prevent inventory update from even starting when source script is missing.
This commit is contained in:
@@ -1472,7 +1472,7 @@ class CustomInventoryScriptAccess(BaseAccess):
|
||||
if self.user.is_superuser:
|
||||
return True
|
||||
if not self.active:
|
||||
return Flase
|
||||
return False
|
||||
return bool(obj.organization in self.user.organizations.all() or obj.organization in self.user.admin_of_organizations.all())
|
||||
|
||||
def can_add(self, data):
|
||||
|
||||
Reference in New Issue
Block a user