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 95e93e0365)
mr13.0
Debora Crescenzo 7 months ago committed by Crescenzo Debora
parent 13e9275335
commit 1ee2418e5b

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