@steedos/service-objectql 2.7.1-beta.8 → 2.7.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steedos/service-objectql",
3
- "version": "2.7.1-beta.8",
3
+ "version": "2.7.1",
4
4
  "main": "package.service.js",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -13,8 +13,8 @@
13
13
  "description": "steedos package",
14
14
  "repository": {},
15
15
  "license": "MIT",
16
- "gitHead": "6c6d45b547b6f1f511f1d3f8a4bd5b06caf0b113",
16
+ "gitHead": "5485c0bd811776f2ffde988c0a9394d778a2dc90",
17
17
  "dependencies": {
18
- "@steedos/objectql": "2.7.1-beta.8"
18
+ "@steedos/objectql": "2.7.1"
19
19
  }
20
20
  }
@@ -2,7 +2,7 @@
2
2
  * @Author: sunhaolin@hotoa.com
3
3
  * @Date: 2023-03-23 15:12:14
4
4
  * @LastEditors: baozhoutao@steedos.com
5
- * @LastEditTime: 2024-03-11 14:28:56
5
+ * @LastEditTime: 2024-05-11 13:44:56
6
6
  * @Description:
7
7
  */
8
8
  "use strict";
@@ -408,7 +408,7 @@ module.exports = {
408
408
  const userSession = ctx.meta.user;
409
409
  const { objectName, recordId } = ctx.params;
410
410
  const obj = getObject(objectName)
411
- const record = await obj.findOne(recordId)
411
+ const record = await obj.findOne(recordId, {}, userSession)
412
412
  return obj.getRecordPermissions(record, userSession);
413
413
  }
414
414
  },