From a3b9072a0eb0ae5813c5382d44237c8bbde3041e Mon Sep 17 00:00:00 2001 From: Paolo Possanzini Date: Thu, 5 Apr 2018 14:52:52 +0200 Subject: [PATCH] security --- Step/wwwroot/src/modules/nc-softkeys.vue | 1 - Step/wwwroot/src/modules/under-the-hood/soft-key1.vue | 2 ++ Step/wwwroot/src/modules/under-the-hood/soft-key2.vue | 4 ++-- Step/wwwroot/src/modules/under-the-hood/soft-key3.vue | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Step/wwwroot/src/modules/nc-softkeys.vue b/Step/wwwroot/src/modules/nc-softkeys.vue index 0fb891ea..98ef6714 100644 --- a/Step/wwwroot/src/modules/nc-softkeys.vue +++ b/Step/wwwroot/src/modules/nc-softkeys.vue @@ -70,7 +70,6 @@ export default { return false; }, isKeyActive(id) { - if(this.checkSecurityDisabled('ncSoftkeys')) return false; let r = this.$store.getters.getNcSoftKeyStatus(id); diff --git a/Step/wwwroot/src/modules/under-the-hood/soft-key1.vue b/Step/wwwroot/src/modules/under-the-hood/soft-key1.vue index 0ecde505..eccce52a 100644 --- a/Step/wwwroot/src/modules/under-the-hood/soft-key1.vue +++ b/Step/wwwroot/src/modules/under-the-hood/soft-key1.vue @@ -42,6 +42,8 @@ export default { }, disabled() { var _disabled = true; + + if(this.checkSecurityDisabled('userSoftkeys')) return true; for (const key in this.activeSubKeys) { if (this.activeSubKeys[key]) _disabled = false; } diff --git a/Step/wwwroot/src/modules/under-the-hood/soft-key2.vue b/Step/wwwroot/src/modules/under-the-hood/soft-key2.vue index 2c57e8bd..a86ad766 100644 --- a/Step/wwwroot/src/modules/under-the-hood/soft-key2.vue +++ b/Step/wwwroot/src/modules/under-the-hood/soft-key2.vue @@ -1,5 +1,5 @@