@vc-shell/framework 1.0.184 → 1.0.186
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 +668 -667
- package/dist/ui/components/organisms/vc-table/vc-table.vue.d.ts.map +1 -1
- package/package.json +4 -4
- package/ui/components/organisms/vc-table/_internal/vc-table-cell/vc-table-cell.vue +5 -4
- package/ui/components/organisms/vc-table/vc-table.vue +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
## [1.0.186](https://github.com/VirtoCommerce/vc-shell/compare/v1.0.185...v1.0.186) (2024-03-15)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* administrator full access on permissions check ([9f96645](https://github.com/VirtoCommerce/vc-shell/commit/9f96645ae03c0920e83d2a8ecca5b3f565a910b9))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
## [1.0.185](https://github.com/VirtoCommerce/vc-shell/compare/v1.0.184...v1.0.185) (2024-03-15)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* **ui:** table width fix, hover with date on date-ago ([a249e0c](https://github.com/VirtoCommerce/vc-shell/commit/a249e0cff939cf9ef555b93373b62980cfed4182))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
1
19
|
## [1.0.184](https://github.com/VirtoCommerce/vc-shell/compare/v1.0.183...v1.0.184) (2024-03-14)
|
|
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(() => {
|