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