1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-31 15:21:13 +03:00

Disable insights cred when user doesn't have edit permissions

This commit is contained in:
mabashian 2017-08-31 11:31:51 -04:00
parent 00a49482f2
commit ddb588f7a6

View File

@ -74,7 +74,8 @@ function(i18n, InventoryCompletedJobsList) {
sourceField: 'name',
search: {
credential_type: '13' //insights
}
},
ngDisabled: '!(inventory_obj.summary_fields.user_capabilities.edit || canAdd) || !canEditOrg',
},
instance_groups: {
label: i18n._('Instance Groups'),