remult 0.27.24-next.0 → 0.27.24-next.2
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/esm/src/data-api.js
CHANGED
|
@@ -173,6 +173,9 @@ export class DataApi {
|
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
175
|
async groupBy(request, body) {
|
|
176
|
+
if (!this.repository.metadata.apiReadAllowed) {
|
|
177
|
+
throw new ForbiddenError();
|
|
178
|
+
}
|
|
176
179
|
let findOptions = await this.findOptionsFromRequest(request, body);
|
|
177
180
|
let orderBy = {};
|
|
178
181
|
if (body?.orderBy) {
|
|
@@ -1513,7 +1513,8 @@ export class rowHelperImplementation extends rowHelperBase {
|
|
|
1513
1513
|
if (Object.prototype.hasOwnProperty.call(d, key)) {
|
|
1514
1514
|
const element = d[key];
|
|
1515
1515
|
if (this.fields.find(key).valueChanged() &&
|
|
1516
|
-
!ignoreKeys.includes(key)
|
|
1516
|
+
!ignoreKeys.includes(key) &&
|
|
1517
|
+
element !== undefined) {
|
|
1517
1518
|
changesOnly[key] = element;
|
|
1518
1519
|
wasChanged = true;
|
|
1519
1520
|
}
|
package/package.json
CHANGED
package/src/data-api.js
CHANGED
|
@@ -354,7 +354,11 @@ var DataApi = /** @class */ (function () {
|
|
|
354
354
|
var _f, _g, _h, _j, _k, _l;
|
|
355
355
|
return tslib_1.__generator(this, function (_m) {
|
|
356
356
|
switch (_m.label) {
|
|
357
|
-
case 0:
|
|
357
|
+
case 0:
|
|
358
|
+
if (!this.repository.metadata.apiReadAllowed) {
|
|
359
|
+
throw new server_action_js_1.ForbiddenError();
|
|
360
|
+
}
|
|
361
|
+
return [4 /*yield*/, this.findOptionsFromRequest(request, body)];
|
|
358
362
|
case 1:
|
|
359
363
|
findOptions = _m.sent();
|
|
360
364
|
orderBy = {};
|
|
@@ -2496,7 +2496,8 @@ var rowHelperImplementation = /** @class */ (function (_super) {
|
|
|
2496
2496
|
if (Object.prototype.hasOwnProperty.call(d, key)) {
|
|
2497
2497
|
element = d[key];
|
|
2498
2498
|
if (this.fields.find(key).valueChanged() &&
|
|
2499
|
-
!ignoreKeys.includes(key)
|
|
2499
|
+
!ignoreKeys.includes(key) &&
|
|
2500
|
+
element !== undefined) {
|
|
2500
2501
|
changesOnly[key] = element;
|
|
2501
2502
|
wasChanged = true;
|
|
2502
2503
|
}
|