mirror of
https://github.com/ansible/awx.git
synced 2026-05-13 12:27:37 -02:30
Make CredentialType conditionally editable/readonly.
* CredentialTypes should not be editable *or* deletable if they're "managed_by_tower". * CredentialTypes should not be deletable if they're in use by one or more Credentials. * CredentialType.inputs should not be editable if they're in use by one or more Credentials. see: #6077
This commit is contained in:
@@ -809,8 +809,6 @@ class CredentialTypeAccess(BaseAccess):
|
||||
- I'm a superuser:
|
||||
I can change when:
|
||||
- I'm a superuser and the type is not "managed by Tower"
|
||||
I can change/delete when:
|
||||
- I'm a superuser and the type is not "managed by Tower"
|
||||
'''
|
||||
|
||||
model = CredentialType
|
||||
|
||||
Reference in New Issue
Block a user