diff --git a/awx/ui/client/src/configuration/auth-form/configuration-auth.controller.js b/awx/ui/client/src/configuration/auth-form/configuration-auth.controller.js index c38183599e..33d1a53c37 100644 --- a/awx/ui/client/src/configuration/auth-form/configuration-auth.controller.js +++ b/awx/ui/client/src/configuration/auth-form/configuration-auth.controller.js @@ -157,8 +157,8 @@ export default [ } addFieldInfo(form, key); }); - // Disable the save button for non-superusers - form.buttons.save.disabled = 'vm.updateProhibited'; + // Disable the save button for system auditors + form.buttons.save.disabled = $rootScope.user_is_system_auditor; }); function addFieldInfo(form, key) { diff --git a/awx/ui/client/src/configuration/configuration.controller.js b/awx/ui/client/src/configuration/configuration.controller.js index 35d19a5611..e5d3d6049d 100644 --- a/awx/ui/client/src/configuration/configuration.controller.js +++ b/awx/ui/client/src/configuration/configuration.controller.js @@ -465,11 +465,6 @@ export default [ triggerModal(msg, title, buttons); }; - var updateProhibited = true; - if($rootScope.user_is_superuser) { - updateProhibited = false; - } - angular.extend(vm, { activeTab: activeTab, activeTabCheck: activeTabCheck, @@ -482,7 +477,6 @@ export default [ resetAllConfirm: resetAllConfirm, show_auditor_bar: show_auditor_bar, triggerModal: triggerModal, - updateProhibited: updateProhibited }); } ]; diff --git a/awx/ui/client/src/configuration/jobs-form/configuration-jobs.controller.js b/awx/ui/client/src/configuration/jobs-form/configuration-jobs.controller.js index c242e97da1..0d7cd0962b 100644 --- a/awx/ui/client/src/configuration/jobs-form/configuration-jobs.controller.js +++ b/awx/ui/client/src/configuration/jobs-form/configuration-jobs.controller.js @@ -39,8 +39,8 @@ export default [ }); }); - // Disable the save button for non-superusers - form.buttons.save.disabled = 'vm.updateProhibited'; + // Disable the save button for system auditors + form.buttons.save.disabled = $rootScope.user_is_system_auditor; var keys = _.keys(form.fields); _.each(keys, function(key) { diff --git a/awx/ui/client/src/configuration/system-form/configuration-system.controller.js b/awx/ui/client/src/configuration/system-form/configuration-system.controller.js index 3751e298a5..c22131c2bc 100644 --- a/awx/ui/client/src/configuration/system-form/configuration-system.controller.js +++ b/awx/ui/client/src/configuration/system-form/configuration-system.controller.js @@ -19,8 +19,8 @@ export default [ addFieldInfo(form, key); }); - // Disable the save button for non-superusers - form.buttons.save.disabled = 'vm.updateProhibited'; + // Disable the save button for system auditors + form.buttons.save.disabled = $rootScope.user_is_system_auditor; function addFieldInfo(form, key) { _.extend(form.fields[key], { diff --git a/awx/ui/client/src/configuration/ui-form/configuration-ui.controller.js b/awx/ui/client/src/configuration/ui-form/configuration-ui.controller.js index aff68d72dc..bfa19b165f 100644 --- a/awx/ui/client/src/configuration/ui-form/configuration-ui.controller.js +++ b/awx/ui/client/src/configuration/ui-form/configuration-ui.controller.js @@ -47,8 +47,8 @@ addFieldInfo(form, key); }); - // Disable the save button for non-superusers - form.buttons.save.disabled = 'vm.updateProhibited'; + // Disable the save button for system auditors + form.buttons.save.disabled = $rootScope.user_is_system_auditor; function addFieldInfo(form, key) { _.extend(form.fields[key], {