mirror of
https://github.com/ansible/awx.git
synced 2026-11-22 00:06:10 -03:30
Fix inventory update permission so update_role is enough to update
This commit is contained in:
+6
-1
@@ -524,7 +524,12 @@ class InventorySourceAccess(BaseAccess):
|
||||
return False
|
||||
|
||||
def can_start(self, obj):
|
||||
return self.can_change(obj, {}) and obj.can_update
|
||||
if obj and obj.group:
|
||||
return obj.can_update and self.user in obj.group.inventory.update_role
|
||||
elif obj and obj.inventory:
|
||||
return obj.can_update and self.user in obj.inventory.update_role
|
||||
return False
|
||||
|
||||
|
||||
class InventoryUpdateAccess(BaseAccess):
|
||||
'''
|
||||
|
||||
Reference in New Issue
Block a user