@nocobase/plugin-acl 0.21.0-alpha.6 → 0.21.0-alpha.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.
@@ -1,22 +1,22 @@
1
1
  module.exports = {
2
- "@nocobase/client": "0.21.0-alpha.6",
2
+ "@nocobase/client": "0.21.0-alpha.7",
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.21.0-alpha.6",
10
- "@nocobase/actions": "0.21.0-alpha.6",
11
- "@nocobase/cache": "0.21.0-alpha.6",
12
- "@nocobase/database": "0.21.0-alpha.6",
13
- "@nocobase/server": "0.21.0-alpha.6",
9
+ "@nocobase/utils": "0.21.0-alpha.7",
10
+ "@nocobase/actions": "0.21.0-alpha.7",
11
+ "@nocobase/cache": "0.21.0-alpha.7",
12
+ "@nocobase/database": "0.21.0-alpha.7",
13
+ "@nocobase/server": "0.21.0-alpha.7",
14
14
  "async-mutex": "0.3.2",
15
15
  "lodash": "4.17.21",
16
- "@nocobase/test": "0.21.0-alpha.6",
16
+ "@nocobase/test": "0.21.0-alpha.7",
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.21.0-alpha.6"
21
+ "@nocobase/acl": "0.21.0-alpha.7"
22
22
  };
@@ -17,7 +17,7 @@ export declare class GrantHelper {
17
17
  targetActionResourceMap: Map<string, string[]>;
18
18
  constructor();
19
19
  }
20
- export declare class PluginACL extends Plugin {
20
+ export declare class PluginACLServer extends Plugin {
21
21
  associationFieldsActions: AssociationFieldsActions;
22
22
  grantHelper: GrantHelper;
23
23
  get acl(): import("@nocobase/acl").ACL;
@@ -31,4 +31,4 @@ export declare class PluginACL extends Plugin {
31
31
  install(): Promise<void>;
32
32
  load(): Promise<void>;
33
33
  }
34
- export default PluginACL;
34
+ export default PluginACLServer;
@@ -28,7 +28,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
28
28
  var server_exports = {};
29
29
  __export(server_exports, {
30
30
  GrantHelper: () => GrantHelper,
31
- PluginACL: () => PluginACL,
31
+ PluginACLServer: () => PluginACLServer,
32
32
  default: () => server_default
33
33
  });
34
34
  module.exports = __toCommonJS(server_exports);
@@ -53,7 +53,7 @@ class GrantHelper {
53
53
  constructor() {
54
54
  }
55
55
  }
56
- class PluginACL extends import_server.Plugin {
56
+ class PluginACLServer extends import_server.Plugin {
57
57
  // association field actions config
58
58
  associationFieldsActions = {};
59
59
  grantHelper = new GrantHelper();
@@ -173,7 +173,10 @@ class PluginACL extends import_server.Plugin {
173
173
  "roles.resources:*",
174
174
  "uiSchemas:getProperties",
175
175
  "roles.menuUiSchemas:*",
176
- "roles.users:*"
176
+ "roles.users:*",
177
+ "dataSources.roles:*",
178
+ "roles.dataSourcesCollections:*",
179
+ "roles.dataSourceResources:*"
177
180
  ]
178
181
  });
179
182
  this.app.acl.beforeGrantAction((ctx) => {
@@ -617,9 +620,9 @@ class PluginACL extends import_server.Plugin {
617
620
  });
618
621
  }
619
622
  }
620
- var server_default = PluginACL;
623
+ var server_default = PluginACLServer;
621
624
  // Annotate the CommonJS export names for ESM import in node:
622
625
  0 && (module.exports = {
623
626
  GrantHelper,
624
- PluginACL
627
+ PluginACLServer
625
628
  });
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.21.0-alpha.6",
7
+ "version": "0.21.0-alpha.7",
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": "25eaaf1bdf44d2b457a3a3742532db9d2008216b"
37
+ "gitHead": "b1be3993f8aa81173d01bc390aa8e4c5adcc0e2d"
38
38
  }