remult 0.27.24-next.1 → 0.27.24

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.
@@ -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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "remult",
3
- "version": "0.27.24-next.1",
3
+ "version": "0.27.24",
4
4
  "description": "A CRUD framework for full-stack TypeScript",
5
5
  "homepage": "https://remult.dev",
6
6
  "repository": {
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: return [4 /*yield*/, this.findOptionsFromRequest(request, body)];
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 = {};