@optimiser/common 1.0.411 → 1.0.412

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.
@@ -5813,7 +5813,11 @@ function CheckAccessPermissions(permissionType, objectName, msp_d, db, mdb, next
5813
5813
  for (_i = 0, _d = data.Permissions; _i < _d.length; _i++) {
5814
5814
  item = _d[_i];
5815
5815
  if (item.ModuleID.toLowerCase() == objectName.toLowerCase() || ((_b = (_a = item.ModuleData) === null || _a === void 0 ? void 0 : _a.Objects) === null || _b === void 0 ? void 0 : _b.includes(objectName))) {
5816
- if (item.Operations.includes(permissionType)) {
5816
+ if (permissionType == "CheckOnlyAccess") {
5817
+ isAllowed = true;
5818
+ break;
5819
+ }
5820
+ else if (item.Operations.includes(permissionType)) {
5817
5821
  isAllowed = true;
5818
5822
  break;
5819
5823
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optimiser/common",
3
- "version": "1.0.411",
3
+ "version": "1.0.412",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {