Fix typo, modify can_update to prevent inventory update from even starting when source script is missing.

This commit is contained in:
Chris Church
2014-12-03 18:35:33 -05:00
parent f893e4b00b
commit 109988da13
3 changed files with 18 additions and 4 deletions

View File

@@ -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):