@steedos/service-objectql 2.7.0 → 2.7.1-beta.10
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 +3 -3
- package/package.service.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/service-objectql",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.1-beta.10",
|
|
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": "
|
|
16
|
+
"gitHead": "ebcec3b98499655769a965cf548456f280f0df18",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@steedos/objectql": "2.7.
|
|
18
|
+
"@steedos/objectql": "2.7.1-beta.10"
|
|
19
19
|
}
|
|
20
20
|
}
|
package/package.service.js
CHANGED
|
@@ -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-
|
|
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
|
},
|