mirror of
https://github.com/ZwareBear/awx.git
synced 2026-05-03 05:11:49 -05:00
adjusting Credential model and migrations
This commit is contained in:
@@ -600,6 +600,10 @@ class CredentialAccess(BaseAccess):
|
||||
if not self.can_add(data):
|
||||
return False
|
||||
|
||||
if obj.organization:
|
||||
if self.user in obj.organization.admin_role:
|
||||
return True
|
||||
|
||||
return self.user in obj.owner_role
|
||||
|
||||
def can_delete(self, obj):
|
||||
|
||||
Reference in New Issue
Block a user