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
mr13.1
Debora Crescenzo 7 months ago
parent 13dbc468a8
commit 95e93e0365

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

Loading…
Cancel
Save