mirror of
https://github.com/ansible/awx.git
synced 2026-02-18 19:50:05 -03:30
Add read-only credential form depending on access
This commit is contained in:
@@ -35,10 +35,12 @@ function EditCredentialsController (models, $state, $scope, strings) {
|
||||
// Only exists for permissions compatibility
|
||||
$scope.credential_obj = credential.get();
|
||||
|
||||
vm.form = credential.createFormSchema('put', {
|
||||
vm.form = credential.createFormSchema({
|
||||
omit: ['user', 'team', 'inputs']
|
||||
});
|
||||
|
||||
vm.form.disabled = !credential.isEditable();
|
||||
|
||||
vm.form.organization._resource = 'organization';
|
||||
vm.form.organization._model = organization;
|
||||
vm.form.organization._route = 'credentials.edit.organization';
|
||||
|
||||
Reference in New Issue
Block a user