@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.
- package/dist/lib/utility.js +5 -1
- package/package.json +1 -1
package/dist/lib/utility.js
CHANGED
|
@@ -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 (
|
|
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
|
}
|