Allow system auditor to access the configure tower page. Hide revert all button for system auditors.

This commit is contained in:
Michael Abashian
2017-07-19 14:01:59 -04:00
parent 4725eae48f
commit 3d935d2448
15 changed files with 15 additions and 2 deletions

View File

@@ -42,6 +42,7 @@
buttons: {
reset: {
ngShow: '!user_is_system_auditor',
ngClick: 'vm.resetAllConfirm()',
label: i18n._('Revert all to default'),
class: 'Form-resetAll'

View File

@@ -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'

View File

@@ -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'

View File

@@ -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'

View File

@@ -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'

View File

@@ -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'

View File

@@ -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'

View File

@@ -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'

View File

@@ -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'

View File

@@ -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], {

View File

@@ -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) {
}
};
}];

View File

@@ -21,6 +21,7 @@
buttons: {
reset: {
ngShow: '!user_is_system_auditor',
ngClick: 'vm.resetAllConfirm()',
label: i18n._('Revert all to default'),
class: 'Form-resetAll'

View File

@@ -68,6 +68,7 @@
buttons: {
reset: {
ngShow: '!user_is_system_auditor',
ngClick: 'vm.resetAllConfirm()',
label: i18n._('Revert all to default'),
class: 'Form-resetAll'

View File

@@ -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'

View File

@@ -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'