From fdb20de85a3c3f2959c72af42611c01f5e8b3451 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) (cherry picked from commit 397c7d3ceff4e83383d492a370200ddd21644377) --- 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 e5ba382b..5bed7bac 100644 --- a/src/router/routes.js +++ b/src/router/routes.js @@ -398,7 +398,7 @@ const routes = [ }, adminOnly: true, platformFeature: FEATURES.cloudPbx, - profileAttributes: PROFILE_ATTRIBUTE_MAP.cloudPbxCallQueue, + profileAttribute: PROFILE_ATTRIBUTE_MAP.cloudPbxCallQueue, capability: FEATURES.cloudPbx, licenses: [LICENSES.pbx] } @@ -484,7 +484,7 @@ const routes = [ adminOnly: true, platformFeature: FEATURES.cloudPbx, capability: FEATURES.cloudPbx, - licenses: [LICENSES.pbx, LICENSES.phonebook] + licenses: [LICENSES.pbx] } }, @@ -553,7 +553,7 @@ const routes = [ return i18n.global.tc('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 2615ce09..9bc6d9dd 100644 --- a/src/store/user.js +++ b/src/store/user.js @@ -192,13 +192,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