@webitel/ui-sdk 26.2.144 → 26.2.145

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/ui-sdk",
3
- "version": "26.2.144",
3
+ "version": "26.2.145",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "make-all": "npm version patch --git-tag-version false && npm run build && (npm run build:types || true) && (npm run biome:format:all || true) && npm run publish-lib",
@@ -142,7 +142,13 @@ export const createUserAccessStore = ({
142
142
  wtObject = wtObject(to);
143
143
  }
144
144
 
145
- if (wtApplication && !hasApplicationVisibility(wtApplication)) {
145
+ const alwaysAllowed = to.matched.some(({ meta }) => meta.alwaysAllowed);
146
+
147
+ if (
148
+ !alwaysAllowed &&
149
+ wtApplication &&
150
+ !hasApplicationVisibility(wtApplication)
151
+ ) {
146
152
  return {
147
153
  path: '/access-denied',
148
154
  };