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

Disable togglehost when user cannot edit host

This commit is contained in:
mabashian 2017-08-23 11:07:02 -04:00
parent 0cbe083dcf
commit 51c3d77a92
2 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ export default ['i18n', function(i18n) {
fields: {
toggleHost: {
ngDisabled: 'host.has_inventory_sources',
ngDisabled: '!nested_host.summary_fields.user_capabilities.edit || host.has_inventory_sources',
label: '',
columnClass: 'List-staticColumn--toggle',
type: "toggle",

View File

@ -20,7 +20,7 @@ export default ['i18n', function(i18n) {
fields: {
toggleHost: {
ngDisabled: 'host.has_inventory_sources',
ngDisabled: '!host.summary_fields.user_capabilities.edit || host.has_inventory_sources',
label: '',
columnClass: 'List-staticColumn--toggle',
type: "toggle",