@c8y/ngx-components 1018.0.275 → 1018.0.276
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/esm2020/context-dashboard/context-dashboard.service.mjs +2 -7
- package/fesm2015/c8y-ngx-components-context-dashboard.mjs +1 -6
- package/fesm2015/c8y-ngx-components-context-dashboard.mjs.map +1 -1
- package/fesm2020/c8y-ngx-components-context-dashboard.mjs +1 -6
- package/fesm2020/c8y-ngx-components-context-dashboard.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -303,12 +303,7 @@ class ContextDashboardService {
|
|
|
303
303
|
}
|
|
304
304
|
}
|
|
305
305
|
canEditDashboard(mo) {
|
|
306
|
-
return this.permissions.canEdit([
|
|
307
|
-
Permissions.ROLE_INVENTORY_ADMIN,
|
|
308
|
-
Permissions.ROLE_INVENTORY_CREATE,
|
|
309
|
-
Permissions.ROLE_MANAGED_OBJECT_ADMIN,
|
|
310
|
-
Permissions.ROLE_MANAGED_OBJECT_CREATE
|
|
311
|
-
], mo);
|
|
306
|
+
return this.permissions.canEdit([Permissions.ROLE_INVENTORY_ADMIN, Permissions.ROLE_MANAGED_OBJECT_ADMIN], mo);
|
|
312
307
|
}
|
|
313
308
|
/**
|
|
314
309
|
* Checks if user has permissions to copy dashboard according to his roles.
|