From b72aa76fa2b5cad64cefea50cd6fb48e31fc3cc4 Mon Sep 17 00:00:00 2001 From: Debora Crescenzo Date: Wed, 8 Oct 2025 16:06:27 +0100 Subject: [PATCH] MT#63627 Call queue route access bugfix * Fix call queue route access * Replace unnecessary license check for customer preferences Change-Id: I7e28accbb465d057e75dd006775775b34965aeb9 (cherry picked from commit c764dfca718189ca839f091a90182f98c6650f51) --- src/router/routes.js | 6 +++--- src/store/user.js | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/router/routes.js b/src/router/routes.js index 63355bf5..7ee09149 100644 --- a/src/router/routes.js +++ b/src/router/routes.js @@ -417,7 +417,7 @@ const routes = [ }, adminOnly: true, platformFeature: FEATURES.cloudPbx, - profileAttributes: PROFILE_ATTRIBUTE_MAP.cloudPbxCallQueue, + profileAttribute: PROFILE_ATTRIBUTE_MAP.cloudPbxCallQueue, capability: FEATURES.cloudPbx, licenses: [LICENSES.pbx] } @@ -503,7 +503,7 @@ const routes = [ adminOnly: true, platformFeature: FEATURES.cloudPbx, capability: FEATURES.cloudPbx, - licenses: [LICENSES.pbx, LICENSES.phonebook] + licenses: [LICENSES.pbx] } }, @@ -572,7 +572,7 @@ const routes = [ return i18n.global.t('Call Queues') }, platformFeature: FEATURES.cloudPbx, - profileAttributes: PROFILE_ATTRIBUTE_MAP.cloudPbxCallQueue, + profileAttribute: PROFILE_ATTRIBUTE_MAP.cloudPbxCallQueue, capability: FEATURES.cloudPbx, licenses: [LICENSES.pbx] } diff --git a/src/store/user.js b/src/store/user.js index c2f4a829..1d6de47c 100644 --- a/src/store/user.js +++ b/src/store/user.js @@ -204,13 +204,13 @@ export default { }, hasSubscriberProfileAttribute: (state) => { return (attribute) => { - return state?.profile ? state?.profile?.attributes?.includes(attribute) : true + return state?.profile ? state.profile?.attributes?.includes(attribute) : true } }, hasSomeSubscriberProfileAttributes: (state) => { return (attributes) => { return state?.profile - ? state.profile.attributes?.some((item) => { + ? state.profile?.attributes?.some((item) => { return attributes?.includes(item) }) : true