@nocobase/plugin-acl 1.3.39-beta → 1.3.41-beta

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.
@@ -10,22 +10,22 @@
10
10
  module.exports = {
11
11
  "antd": "5.12.8",
12
12
  "react": "18.2.0",
13
- "@nocobase/client": "1.3.39-beta",
13
+ "@nocobase/client": "1.3.41-beta",
14
14
  "@formily/shared": "2.3.0",
15
15
  "@formily/react": "2.3.0",
16
16
  "@ant-design/icons": "5.2.6",
17
17
  "react-i18next": "11.18.6",
18
- "@nocobase/utils": "1.3.39-beta",
19
- "@nocobase/actions": "1.3.39-beta",
20
- "@nocobase/cache": "1.3.39-beta",
21
- "@nocobase/database": "1.3.39-beta",
22
- "@nocobase/server": "1.3.39-beta",
18
+ "@nocobase/utils": "1.3.41-beta",
19
+ "@nocobase/actions": "1.3.41-beta",
20
+ "@nocobase/cache": "1.3.41-beta",
21
+ "@nocobase/database": "1.3.41-beta",
22
+ "@nocobase/server": "1.3.41-beta",
23
23
  "async-mutex": "0.3.2",
24
24
  "lodash": "4.17.21",
25
- "@nocobase/test": "1.3.39-beta",
25
+ "@nocobase/test": "1.3.41-beta",
26
26
  "@formily/core": "2.3.0",
27
27
  "ahooks": "3.7.8",
28
28
  "@formily/antd-v5": "1.1.9",
29
29
  "antd-style": "3.4.5",
30
- "@nocobase/acl": "1.3.39-beta"
30
+ "@nocobase/acl": "1.3.41-beta"
31
31
  };
@@ -492,6 +492,13 @@ class PluginACLServer extends import_server.Plugin {
492
492
  await next();
493
493
  return;
494
494
  }
495
+ const hasFilterByTk = (params) => {
496
+ return JSON.stringify(params).includes("filterByTk");
497
+ };
498
+ if (!hasFilterByTk(ctx.permission.mergedParams) || !hasFilterByTk(ctx.permission.rawParams)) {
499
+ await next();
500
+ return;
501
+ }
495
502
  const filteredCount = await repository.count(ctx.permission.mergedParams);
496
503
  const queryCount = await repository.count(ctx.permission.rawParams);
497
504
  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": "1.3.39-beta",
7
+ "version": "1.3.41-beta",
8
8
  "license": "AGPL-3.0",
9
9
  "main": "./dist/server/index.js",
10
10
  "homepage": "https://docs.nocobase.com/handbook/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": "68daadf8575cddf9eeb09a1a672f9baf7aabe67a"
37
+ "gitHead": "781f7305b537324923e347810edfbe95706f9f72"
38
38
  }