@steedos/standard-permission 2.5.3-beta.16 → 2.5.3-beta.19

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.
@@ -2,7 +2,7 @@
2
2
  * @Author: sunhaolin@hotoa.com
3
3
  * @Date: 2022-05-26 16:56:54
4
4
  * @LastEditors: sunhaolin@hotoa.com
5
- * @LastEditTime: 2023-05-13 17:00:38
5
+ * @LastEditTime: 2023-06-14 10:49:23
6
6
  * @Description: 复制已有简档来创建新简档
7
7
  * 使用mongodb的事务处理,保证数据的一致性
8
8
  * 复制对象包括:简档、对象权限、字段权限、选项卡权限
@@ -228,7 +228,7 @@ async function getInternalPermissionObjects(permissionSetId) {
228
228
  filters: [
229
229
  ['_id', '=', permissionSetId],
230
230
  ]
231
- })[0]);
231
+ }))[0];
232
232
  // 如果库中有记录则使用库中的name作为判断条件,否则使用permissionSetId
233
233
  const permissionSetName = permissionSetDoc ? permissionSetDoc.name : permissionSetId;
234
234
 
@@ -105,7 +105,7 @@ module.exports = {
105
105
  filters: [
106
106
  ['_id', '=', permissionSetId],
107
107
  ]
108
- })[0]);
108
+ }))[0];
109
109
  if (permissionSetDoc) {
110
110
  // 替换this.query.filters中全部的的permission_set_id为permissionSetDoc.name
111
111
  this.query.filters = this.query.filters.replace(regex, permissionSetDoc.name).replace(`permission_set_id eq '${permissionSetDoc.name}'`, `(permission_set_id eq '${permissionSetDoc.name}') or (permission_set_id eq '${permissionSetId}')`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steedos/standard-permission",
3
- "version": "2.5.3-beta.16",
3
+ "version": "2.5.3-beta.19",
4
4
  "main": "package.service.js",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -12,5 +12,5 @@
12
12
  "description": "steedos package",
13
13
  "repository": {},
14
14
  "license": "MIT",
15
- "gitHead": "ef2a20e8380004854e0428016d3468c4b5ea7c0b"
15
+ "gitHead": "43f6afa6a823ae9f34be22b981a6fa38fd5590e2"
16
16
  }