mirror of
https://github.com/ansible/awx.git
synced 2026-03-08 21:19:26 -02:30
Merge pull request #5434 from jakemcdermott/fix-3882-3
Only show cred type test button to superusers. Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
@@ -156,7 +156,13 @@ function AddEditCredentialsController (
|
||||
if (credential.get('credential_type') === credentialType.get('id')) {
|
||||
vm.inputSources.items = credential.get('related.input_sources.results');
|
||||
}
|
||||
vm.isTestable = (isEditable && credentialType.get('kind') === 'external');
|
||||
|
||||
if (mode === 'add') {
|
||||
vm.isTestable = (models.me.get('is_superuser') && credentialType.get('kind') === 'external');
|
||||
} else {
|
||||
vm.isTestable = (isEditable && credentialType.get('kind') === 'external');
|
||||
}
|
||||
|
||||
vm.getSubmitData = getSubmitData;
|
||||
vm.checkForm = check;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user