@c8y/ngx-components 1018.503.22 → 1018.503.23
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/core/common/permissions.service.d.ts +2 -2
- package/esm2020/assets-navigator/asset-node.service.mjs +9 -3
- package/esm2020/context-dashboard/add-dashboard.factory.mjs +10 -3
- package/esm2020/context-dashboard/context-dashboard.service.mjs +11 -3
- package/esm2020/context-dashboard/dashboard-detail.component.mjs +7 -2
- package/esm2020/context-dashboard/report-dashboard/report-dashboard-list.component.mjs +4 -2
- package/esm2020/core/bottom-drawer/bottom-drawer.service.mjs +1 -1
- package/esm2020/core/common/permissions.service.mjs +2 -2
- package/esm2020/core/common/user-preferences/user-preferences.service.mjs +6 -2
- package/esm2020/core/user/user-edit.component.mjs +1 -1
- package/esm2020/files-repository/files-repository.guard.mjs +6 -5
- package/esm2020/replace-device/replace-device.service.mjs +13 -5
- package/esm2020/repository/configuration/device-tab/configuration-preview.component.mjs +11 -3
- package/esm2020/sub-assets/add-group/add-group.component.mjs +7 -2
- package/esm2020/sub-assets/groups.component.mjs +5 -2
- package/esm2020/sub-assets/sub-assets.component.mjs +7 -2
- package/esm2020/sub-assets/sub-assets.service.mjs +12 -6
- package/fesm2015/c8y-ngx-components-assets-navigator.mjs +8 -2
- package/fesm2015/c8y-ngx-components-assets-navigator.mjs.map +1 -1
- package/fesm2015/c8y-ngx-components-context-dashboard.mjs +28 -6
- package/fesm2015/c8y-ngx-components-context-dashboard.mjs.map +1 -1
- package/fesm2015/c8y-ngx-components-files-repository.mjs +5 -4
- package/fesm2015/c8y-ngx-components-files-repository.mjs.map +1 -1
- package/fesm2015/c8y-ngx-components-replace-device.mjs +13 -5
- package/fesm2015/c8y-ngx-components-replace-device.mjs.map +1 -1
- package/fesm2015/c8y-ngx-components-repository-configuration.mjs +10 -2
- package/fesm2015/c8y-ngx-components-repository-configuration.mjs.map +1 -1
- package/fesm2015/c8y-ngx-components-sub-assets.mjs +27 -8
- package/fesm2015/c8y-ngx-components-sub-assets.mjs.map +1 -1
- package/fesm2015/c8y-ngx-components.mjs +6 -2
- package/fesm2015/c8y-ngx-components.mjs.map +1 -1
- package/fesm2020/c8y-ngx-components-assets-navigator.mjs +8 -2
- package/fesm2020/c8y-ngx-components-assets-navigator.mjs.map +1 -1
- package/fesm2020/c8y-ngx-components-context-dashboard.mjs +28 -6
- package/fesm2020/c8y-ngx-components-context-dashboard.mjs.map +1 -1
- package/fesm2020/c8y-ngx-components-files-repository.mjs +5 -4
- package/fesm2020/c8y-ngx-components-files-repository.mjs.map +1 -1
- package/fesm2020/c8y-ngx-components-replace-device.mjs +13 -5
- package/fesm2020/c8y-ngx-components-replace-device.mjs.map +1 -1
- package/fesm2020/c8y-ngx-components-repository-configuration.mjs +10 -2
- package/fesm2020/c8y-ngx-components-repository-configuration.mjs.map +1 -1
- package/fesm2020/c8y-ngx-components-sub-assets.mjs +27 -8
- package/fesm2020/c8y-ngx-components-sub-assets.mjs.map +1 -1
- package/fesm2020/c8y-ngx-components.mjs +6 -2
- package/fesm2020/c8y-ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/replace-device/replace-device.service.d.ts +3 -1
|
@@ -552,7 +552,10 @@ class AssetNodeService {
|
|
|
552
552
|
};
|
|
553
553
|
const groupFilter = { ...defaultFilter, ...customFilter };
|
|
554
554
|
// due to BE performance limitations we do not allow filtering and sorting for a user without inventory roles
|
|
555
|
-
if (!this.user.
|
|
555
|
+
if (!this.user.hasAnyRole(this.appState.currentUser.value, [
|
|
556
|
+
Permissions.ROLE_INVENTORY_READ,
|
|
557
|
+
Permissions.ROLE_MANAGED_OBJECT_READ
|
|
558
|
+
])) {
|
|
556
559
|
delete groupFilter.query;
|
|
557
560
|
Object.assign(groupFilter, {
|
|
558
561
|
fragmentType: GroupFragment.groupFragmentType,
|
|
@@ -689,7 +692,10 @@ class AssetNodeService {
|
|
|
689
692
|
*/
|
|
690
693
|
canDropNode(dropOnRoot) {
|
|
691
694
|
return (!dropOnRoot ||
|
|
692
|
-
this.user.
|
|
695
|
+
this.user.hasAnyRole(this.appState.currentUser.value, [
|
|
696
|
+
Permissions.ROLE_INVENTORY_ADMIN,
|
|
697
|
+
Permissions.ROLE_MANAGED_OBJECT_ADMIN
|
|
698
|
+
]));
|
|
693
699
|
}
|
|
694
700
|
/**
|
|
695
701
|
* There could be multiple breadcrumbs for devices,
|