inventory source can_change rm credential check

This commit is contained in:
AlanCoding
2018-03-23 15:25:11 -04:00
parent 1595947ae2
commit 894eeee979
2 changed files with 1 additions and 2 deletions

View File

@@ -928,7 +928,6 @@ class InventorySourceAccess(BaseAccess):
if obj and obj.inventory:
return (
self.user.can_access(Inventory, 'change', obj.inventory, None) and
self.check_related('credential', Credential, data, obj=obj, role_field='use_role') and
self.check_related('source_project', Project, data, obj=obj, role_field='use_role')
)
# Can't change inventory sources attached to only the inventory, since