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