mirror of
https://github.com/ansible/awx.git
synced 2026-01-14 11:20:39 -03:30
Allow system auditor to access the configure tower page. Hide revert all button for system auditors.
This commit is contained in:
parent
4725eae48f
commit
3d935d2448
@ -42,6 +42,7 @@
|
||||
|
||||
buttons: {
|
||||
reset: {
|
||||
ngShow: '!user_is_system_auditor',
|
||||
ngClick: 'vm.resetAllConfirm()',
|
||||
label: i18n._('Revert all to default'),
|
||||
class: 'Form-resetAll'
|
||||
|
||||
@ -46,6 +46,7 @@ export default ['i18n', function(i18n) {
|
||||
|
||||
buttons: {
|
||||
reset: {
|
||||
ngShow: '!user_is_system_auditor',
|
||||
ngClick: 'vm.resetAllConfirm()',
|
||||
label: i18n._('Revert all to default'),
|
||||
class: 'Form-resetAll'
|
||||
|
||||
@ -46,6 +46,7 @@ export default ['i18n', function(i18n) {
|
||||
|
||||
buttons: {
|
||||
reset: {
|
||||
ngShow: '!user_is_system_auditor',
|
||||
ngClick: 'vm.resetAllConfirm()',
|
||||
label: i18n._('Revert all to default'),
|
||||
class: 'Form-resetAll'
|
||||
|
||||
@ -42,6 +42,7 @@ export default ['i18n', function(i18n) {
|
||||
|
||||
buttons: {
|
||||
reset: {
|
||||
ngShow: '!user_is_system_auditor',
|
||||
ngClick: 'vm.resetAllConfirm()',
|
||||
label: i18n._('Revert all to default'),
|
||||
class: 'Form-resetAll'
|
||||
|
||||
@ -54,6 +54,7 @@ export default ['i18n', function(i18n) {
|
||||
|
||||
buttons: {
|
||||
reset: {
|
||||
ngShow: '!user_is_system_auditor',
|
||||
ngClick: 'vm.resetAllConfirm()',
|
||||
label: i18n._('Revert all to default'),
|
||||
class: 'Form-resetAll'
|
||||
|
||||
@ -90,6 +90,7 @@ export default ['i18n', function(i18n) {
|
||||
|
||||
buttons: {
|
||||
reset: {
|
||||
ngShow: '!user_is_system_auditor',
|
||||
ngClick: 'vm.resetAllConfirm()',
|
||||
label: i18n._('Revert all to default'),
|
||||
class: 'Form-resetAll'
|
||||
|
||||
@ -29,6 +29,7 @@ export default ['i18n', function(i18n) {
|
||||
|
||||
buttons: {
|
||||
reset: {
|
||||
ngShow: '!user_is_system_auditor',
|
||||
ngClick: 'vm.resetAllConfirm()',
|
||||
label: i18n._('Revert all to default'),
|
||||
class: 'Form-resetAll'
|
||||
|
||||
@ -82,6 +82,7 @@ export default ['i18n', function(i18n) {
|
||||
|
||||
buttons: {
|
||||
reset: {
|
||||
ngShow: '!user_is_system_auditor',
|
||||
ngClick: 'vm.resetAllConfirm()',
|
||||
label: i18n._('Revert all to default'),
|
||||
class: 'Form-resetAll'
|
||||
|
||||
@ -42,6 +42,7 @@ export default ['i18n', function(i18n) {
|
||||
|
||||
buttons: {
|
||||
reset: {
|
||||
ngShow: '!user_is_system_auditor',
|
||||
ngClick: 'vm.resetAllConfirm()',
|
||||
label: i18n._('Revert all to default'),
|
||||
class: 'Form-resetAll'
|
||||
|
||||
@ -23,7 +23,7 @@ export default ['$rootScope', 'GetBasePath', 'ProcessErrors', '$q', '$http', 'Re
|
||||
var putActions = data.actions.PUT;
|
||||
|
||||
_.each(getKeys, function(key) {
|
||||
if(putActions[key]) {
|
||||
if(putActions && putActions[key]) {
|
||||
returnData[key] = putActions[key];
|
||||
} else {
|
||||
returnData[key] = _.extend(getActions[key], {
|
||||
|
||||
@ -68,6 +68,7 @@ export default ['i18n', function(i18n) {
|
||||
},
|
||||
buttons: {
|
||||
reset: {
|
||||
ngShow: '!user_is_system_auditor',
|
||||
ngClick: 'vm.resetAllConfirm()',
|
||||
label: i18n._('Revert all to default'),
|
||||
class: 'Form-resetAll'
|
||||
@ -82,4 +83,3 @@ export default ['i18n', function(i18n) {
|
||||
}
|
||||
};
|
||||
}];
|
||||
|
||||
|
||||
@ -21,6 +21,7 @@
|
||||
|
||||
buttons: {
|
||||
reset: {
|
||||
ngShow: '!user_is_system_auditor',
|
||||
ngClick: 'vm.resetAllConfirm()',
|
||||
label: i18n._('Revert all to default'),
|
||||
class: 'Form-resetAll'
|
||||
|
||||
@ -68,6 +68,7 @@
|
||||
|
||||
buttons: {
|
||||
reset: {
|
||||
ngShow: '!user_is_system_auditor',
|
||||
ngClick: 'vm.resetAllConfirm()',
|
||||
label: i18n._('Revert all to default'),
|
||||
class: 'Form-resetAll'
|
||||
|
||||
@ -45,6 +45,7 @@ export default ['i18n', function(i18n) {
|
||||
|
||||
buttons: {
|
||||
reset: {
|
||||
ngShow: '!user_is_system_auditor',
|
||||
ngClick: 'vm.resetAllConfirm()',
|
||||
label: i18n._('Revert all to default'),
|
||||
class: 'Form-resetAll'
|
||||
|
||||
@ -31,6 +31,7 @@ export default ['i18n', function(i18n) {
|
||||
|
||||
buttons: {
|
||||
reset: {
|
||||
ngShow: '!user_is_system_auditor',
|
||||
ngClick: 'vm.resetAllConfirm()',
|
||||
label: i18n._('Revert all to default'),
|
||||
class: 'Form-resetAll'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user