@nocobase/plugin-acl 0.20.0-alpha.1 → 0.20.0-alpha.3
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 +8 -8
- package/dist/server/server.js +4 -0
- package/package.json +2 -2
package/dist/externalVersion.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
module.exports = {
|
|
2
|
-
"@nocobase/client": "0.20.0-alpha.
|
|
2
|
+
"@nocobase/client": "0.20.0-alpha.3",
|
|
3
3
|
"react": "18.2.0",
|
|
4
4
|
"@formily/shared": "2.3.0",
|
|
5
5
|
"antd": "5.12.8",
|
|
6
6
|
"@formily/react": "2.3.0",
|
|
7
7
|
"@ant-design/icons": "5.2.6",
|
|
8
8
|
"react-i18next": "11.18.6",
|
|
9
|
-
"@nocobase/utils": "0.20.0-alpha.
|
|
10
|
-
"@nocobase/actions": "0.20.0-alpha.
|
|
11
|
-
"@nocobase/cache": "0.20.0-alpha.
|
|
12
|
-
"@nocobase/database": "0.20.0-alpha.
|
|
13
|
-
"@nocobase/server": "0.20.0-alpha.
|
|
9
|
+
"@nocobase/utils": "0.20.0-alpha.3",
|
|
10
|
+
"@nocobase/actions": "0.20.0-alpha.3",
|
|
11
|
+
"@nocobase/cache": "0.20.0-alpha.3",
|
|
12
|
+
"@nocobase/database": "0.20.0-alpha.3",
|
|
13
|
+
"@nocobase/server": "0.20.0-alpha.3",
|
|
14
14
|
"async-mutex": "0.3.2",
|
|
15
15
|
"lodash": "4.17.21",
|
|
16
|
-
"@nocobase/test": "0.20.0-alpha.
|
|
16
|
+
"@nocobase/test": "0.20.0-alpha.3",
|
|
17
17
|
"@formily/core": "2.3.0",
|
|
18
18
|
"ahooks": "3.7.8",
|
|
19
19
|
"@formily/antd-v5": "1.1.9",
|
|
20
20
|
"antd-style": "3.4.5",
|
|
21
|
-
"@nocobase/acl": "0.20.0-alpha.
|
|
21
|
+
"@nocobase/acl": "0.20.0-alpha.3"
|
|
22
22
|
};
|
package/dist/server/server.js
CHANGED
|
@@ -571,6 +571,10 @@ class PluginACL extends import_server.Plugin {
|
|
|
571
571
|
const action = (_b = (_a = ctx.permission) == null ? void 0 : _a.can) == null ? void 0 : _b.action;
|
|
572
572
|
if (action == "destroy" && !ctx.action.resourceName.includes(".")) {
|
|
573
573
|
const repository = import_actions.utils.getRepositoryFromParams(ctx);
|
|
574
|
+
if (!repository) {
|
|
575
|
+
await next();
|
|
576
|
+
return;
|
|
577
|
+
}
|
|
574
578
|
const filteredCount = await repository.count(ctx.permission.mergedParams);
|
|
575
579
|
const queryCount = await repository.count(ctx.permission.rawParams);
|
|
576
580
|
if (queryCount > filteredCount) {
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"displayName.zh-CN": "权限控制",
|
|
5
5
|
"description": "Based on roles, resources, and actions, access control can precisely manage interface configuration permissions, data operation permissions, menu access permissions, and plugin permissions.",
|
|
6
6
|
"description.zh-CN": "基于角色、资源和操作的权限控制,可以精确控制界面配置权限、数据操作权限、菜单访问权限、插件权限。",
|
|
7
|
-
"version": "0.20.0-alpha.
|
|
7
|
+
"version": "0.20.0-alpha.3",
|
|
8
8
|
"license": "AGPL-3.0",
|
|
9
9
|
"main": "./dist/server/index.js",
|
|
10
10
|
"homepage": "https://docs.nocobase.com/plugins/acl",
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"url": "git+https://github.com/nocobase/nocobase.git",
|
|
35
35
|
"directory": "packages/plugins/acl"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "0d05e9afde96b4a328b04bd8d1ed079c3478febc"
|
|
38
38
|
}
|