mirror of
https://github.com/ansible/awx.git
synced 2026-01-22 06:58:06 -03:30
CredentialAccess fix to ensure appropriate access to what we're adding a credential to
This commit is contained in:
parent
c7f2568c10
commit
826874d61c
@ -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):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user