From cf93e668c2adaa217b2f7e5f8243f2c906e458a3 Mon Sep 17 00:00:00 2001 From: Debora Crescenzo Date: Tue, 8 Oct 2024 15:56:03 +0100 Subject: [PATCH] MT#61228 Replace direct access to state with a getter Accessing directly the state with store.platformInfo.type returns undefined. We replace the line with a getter. Change-Id: Ic74d233ce67ffdf80e7f75e2976e523c6646fb41 (cherry picked from commit 95e93e0365ba48237be738bd521914b857f5647f) (cherry picked from commit b473fe4d0c0370ec70a85fea85f10292afd0a05f) --- src/boot/routes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/boot/routes.js b/src/boot/routes.js index 9f1906f2..dcccf37d 100644 --- a/src/boot/routes.js +++ b/src/boot/routes.js @@ -38,7 +38,7 @@ export default ({ app, router, store }) => { if (to.meta.license && hasSubscriberProfileAttribute) { // Guard to assure that: // CE users have access to all available menus as they do not have licenses - if (store.platformInfo.type === 'spce') { + if (store.getters['user/isSpCe']) { next() } // users cannot click on menu if it is mistakenly visible when the license is inactive