@nocobase/plugin-acl 1.8.15 → 1.8.17

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.
@@ -8,7 +8,7 @@
8
8
  */
9
9
 
10
10
  module.exports = {
11
- "@nocobase/client": "1.8.15",
11
+ "@nocobase/client": "1.8.17",
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.0",
18
18
  "@ant-design/icons": "5.6.1",
19
19
  "lodash": "4.17.21",
20
- "@nocobase/utils": "1.8.15",
21
- "@nocobase/actions": "1.8.15",
22
- "@nocobase/cache": "1.8.15",
23
- "@nocobase/database": "1.8.15",
24
- "@nocobase/server": "1.8.15",
25
- "@nocobase/test": "1.8.15",
20
+ "@nocobase/utils": "1.8.17",
21
+ "@nocobase/actions": "1.8.17",
22
+ "@nocobase/cache": "1.8.17",
23
+ "@nocobase/database": "1.8.17",
24
+ "@nocobase/server": "1.8.17",
25
+ "@nocobase/test": "1.8.17",
26
26
  "@formily/core": "2.3.0",
27
27
  "@formily/antd-v5": "1.2.3",
28
28
  "antd-style": "3.7.1",
29
- "@nocobase/acl": "1.8.15"
29
+ "@nocobase/acl": "1.8.17"
30
30
  };
@@ -39,13 +39,16 @@ __export(with_acl_meta_exports, {
39
39
  createWithACLMetaMiddleware: () => createWithACLMetaMiddleware
40
40
  });
41
41
  module.exports = __toCommonJS(with_acl_meta_exports);
42
- var import_lodash = __toESM(require("lodash"));
43
- var import_database = require("@nocobase/database");
44
42
  var import_acl = require("@nocobase/acl");
43
+ var import_database = require("@nocobase/database");
44
+ var import_lodash = __toESM(require("lodash"));
45
45
  function createWithACLMetaMiddleware() {
46
46
  return async (ctx, next) => {
47
47
  var _a, _b, _c, _d;
48
48
  await next();
49
+ if (process.env.DISABLE_ACL_META === "true" || process.env.DISABLE_ACL_META === "1") {
50
+ return;
51
+ }
49
52
  const dataSourceKey = ctx.get("x-data-source");
50
53
  const dataSource = ctx.app.dataSourceManager.dataSources.get(dataSourceKey);
51
54
  const db = dataSource ? dataSource.collectionManager.db : ctx.db;
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.8.15",
7
+ "version": "1.8.17",
8
8
  "license": "AGPL-3.0",
9
9
  "main": "./dist/server/index.js",
10
10
  "homepage": "https://docs.nocobase.com/handbook/acl",
@@ -33,5 +33,5 @@
33
33
  "url": "git+https://github.com/nocobase/nocobase.git",
34
34
  "directory": "packages/plugins/acl"
35
35
  },
36
- "gitHead": "6cbf5a6ef2023ebaedce11c60351df858d4832b2"
36
+ "gitHead": "ded4d65224fac2fdef2b69131530061347c5d84d"
37
37
  }