@nocobase/plugin-acl 2.0.0-beta.6 → 2.0.0-beta.7
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/dist/externalVersion.js
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
module.exports = {
|
|
11
|
-
"@nocobase/client": "2.0.0-beta.
|
|
11
|
+
"@nocobase/client": "2.0.0-beta.7",
|
|
12
12
|
"antd": "5.24.2",
|
|
13
13
|
"react": "18.2.0",
|
|
14
14
|
"react-i18next": "11.18.6",
|
|
@@ -17,14 +17,14 @@ module.exports = {
|
|
|
17
17
|
"@formily/react": "2.3.7",
|
|
18
18
|
"@ant-design/icons": "5.6.1",
|
|
19
19
|
"lodash": "4.17.21",
|
|
20
|
-
"@nocobase/utils": "2.0.0-beta.
|
|
21
|
-
"@nocobase/actions": "2.0.0-beta.
|
|
22
|
-
"@nocobase/cache": "2.0.0-beta.
|
|
23
|
-
"@nocobase/database": "2.0.0-beta.
|
|
24
|
-
"@nocobase/server": "2.0.0-beta.
|
|
25
|
-
"@nocobase/test": "2.0.0-beta.
|
|
20
|
+
"@nocobase/utils": "2.0.0-beta.7",
|
|
21
|
+
"@nocobase/actions": "2.0.0-beta.7",
|
|
22
|
+
"@nocobase/cache": "2.0.0-beta.7",
|
|
23
|
+
"@nocobase/database": "2.0.0-beta.7",
|
|
24
|
+
"@nocobase/server": "2.0.0-beta.7",
|
|
25
|
+
"@nocobase/test": "2.0.0-beta.7",
|
|
26
26
|
"@formily/core": "2.3.7",
|
|
27
27
|
"@formily/antd-v5": "1.2.3",
|
|
28
28
|
"antd-style": "3.7.1",
|
|
29
|
-
"@nocobase/acl": "2.0.0-beta.
|
|
29
|
+
"@nocobase/acl": "2.0.0-beta.7"
|
|
30
30
|
};
|
|
@@ -61,7 +61,7 @@ async function resolveScopeFilter(ctx, target, params) {
|
|
|
61
61
|
return parsedParams.filter || {};
|
|
62
62
|
}
|
|
63
63
|
async function collectAllowedRecordKeys(ctx, items, recordKey, updateParams, target) {
|
|
64
|
-
const repo = ctx.
|
|
64
|
+
const repo = ctx.database.getRepository(target);
|
|
65
65
|
if (!repo) {
|
|
66
66
|
return void 0;
|
|
67
67
|
}
|
|
@@ -97,7 +97,7 @@ async function collectAllowedRecordKeys(ctx, items, recordKey, updateParams, tar
|
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
async function collectExistingRecordKeys(ctx, recordKey, target, keys) {
|
|
100
|
-
const repo = ctx.
|
|
100
|
+
const repo = ctx.database.getRepository(target);
|
|
101
101
|
if (!repo) {
|
|
102
102
|
return /* @__PURE__ */ new Set();
|
|
103
103
|
}
|
|
@@ -120,7 +120,7 @@ async function collectExistingRecordKeys(ctx, recordKey, target, keys) {
|
|
|
120
120
|
return existingKeys;
|
|
121
121
|
}
|
|
122
122
|
async function recordExistsWithoutScope(ctx, target, recordKey, keyValue) {
|
|
123
|
-
const repo = ctx.
|
|
123
|
+
const repo = ctx.database.getRepository(target);
|
|
124
124
|
if (!repo) {
|
|
125
125
|
return false;
|
|
126
126
|
}
|
|
@@ -169,8 +169,9 @@ async function processAssociationChild(ctx, value, recordKey, updateAssociationV
|
|
|
169
169
|
ctx.log.debug(`No permission to update association`, { fieldPath, value, updateParams });
|
|
170
170
|
return keyValue;
|
|
171
171
|
} else {
|
|
172
|
-
const repo = ctx.
|
|
172
|
+
const repo = ctx.database.getRepository(target);
|
|
173
173
|
if (!repo) {
|
|
174
|
+
ctx.log.debug(`Repository not found for association target`, { fieldPath, target });
|
|
174
175
|
return keyValue;
|
|
175
176
|
}
|
|
176
177
|
try {
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"description": "Based on roles, resources, and actions, access control can precisely manage interface configuration permissions, data operation permissions, menu access permissions, and plugin permissions.",
|
|
7
7
|
"description.ru-RU": "На основе ролей, ресурсов и действий система контроля доступа может точно управлять разрешениями на изменение интерфейса, работу с данными, доступ к меню и разрешениями для подключаемых модулей.",
|
|
8
8
|
"description.zh-CN": "基于角色、资源和操作的权限控制,可以精确控制界面配置权限、数据操作权限、菜单访问权限、插件权限。",
|
|
9
|
-
"version": "2.0.0-beta.
|
|
9
|
+
"version": "2.0.0-beta.7",
|
|
10
10
|
"license": "AGPL-3.0",
|
|
11
11
|
"main": "./dist/server/index.js",
|
|
12
12
|
"homepage": "https://docs.nocobase.com/handbook/acl",
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"url": "git+https://github.com/nocobase/nocobase.git",
|
|
40
40
|
"directory": "packages/plugins/acl"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "17b6e4042a4814e38b256c7b3ae34e6d0b08fd57"
|
|
43
43
|
}
|