mirror of
https://github.com/ansible/awx.git
synced 2026-03-08 21:19:26 -02:30
CredentialAccess fix to ensure appropriate access to what we're adding a credential to
This commit is contained in:
@@ -595,6 +595,8 @@ class CredentialAccess(BaseAccess):
|
||||
|
||||
@check_superuser
|
||||
def can_change(self, obj, data):
|
||||
if not self.can_add(data):
|
||||
return False
|
||||
return self.user in obj.owner_role
|
||||
|
||||
def can_delete(self, obj):
|
||||
|
||||
Reference in New Issue
Block a user