@vc-shell/framework 1.0.185 → 1.0.187
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/CHANGELOG.md +18 -0
- package/core/composables/usePermissions/index.ts +1 -1
- package/core/interceptors/index.ts +1 -1
- package/dist/framework.js +672 -676
- package/dist/shared/modules/dynamic/pages/dynamic-blade-form.vue.d.ts.map +1 -1
- package/package.json +4 -4
- package/shared/modules/dynamic/pages/dynamic-blade-form.vue +1 -11
- package/shared/modules/dynamic/pages/dynamic-blade-list.vue +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
## [1.0.187](https://github.com/VirtoCommerce/vc-shell/compare/v1.0.186...v1.0.187) (2024-03-19)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **dynamic:** confirmation logics refactor, sort in list priority change ([c98d639](https://github.com/VirtoCommerce/vc-shell/commit/c98d639878599932630b0b868f9dca536710b6b6))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
## [1.0.186](https://github.com/VirtoCommerce/vc-shell/compare/v1.0.185...v1.0.186) (2024-03-15)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* administrator full access on permissions check ([9f96645](https://github.com/VirtoCommerce/vc-shell/commit/9f96645ae03c0920e83d2a8ecca5b3f565a910b9))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
1
19
|
## [1.0.185](https://github.com/VirtoCommerce/vc-shell/compare/v1.0.184...v1.0.185) (2024-03-15)
|
|
2
20
|
|
|
3
21
|
|
|
@@ -13,7 +13,7 @@ export function usePermissions(): IUsePermissions {
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
function hasAccess(permissions: string | string[] | undefined) {
|
|
16
|
-
if (!permissions) {
|
|
16
|
+
if (!permissions || user.value?.isAdministrator) {
|
|
17
17
|
return true;
|
|
18
18
|
} else if (Array.isArray(permissions)) {
|
|
19
19
|
return permissions.some((permission) => userPermissions.value.includes(permission));
|
|
@@ -51,7 +51,7 @@ export function registerInterceptors(router: Router) {
|
|
|
51
51
|
/**
|
|
52
52
|
* If the response is unauthorized, logout the user
|
|
53
53
|
*/
|
|
54
|
-
if (response.status === 401
|
|
54
|
+
if (response.status === 401) {
|
|
55
55
|
//logout user
|
|
56
56
|
if (isAuthenticated.value) {
|
|
57
57
|
signOut().then(() => {
|