@nocobase/acl 1.9.23 → 1.9.25

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.
Files changed (2) hide show
  1. package/lib/acl.js +7 -0
  2. package/package.json +4 -4
package/lib/acl.js CHANGED
@@ -196,6 +196,13 @@ const _ACL = class _ACL extends import_events.default {
196
196
  if (!aclRole) {
197
197
  return null;
198
198
  }
199
+ if (role === "root") {
200
+ return {
201
+ resource,
202
+ action,
203
+ role
204
+ };
205
+ }
199
206
  const actionPath = `${rawResourceName ? rawResourceName : resource}:${action}`;
200
207
  const snippetAllowed = aclRole.snippetAllowed(actionPath);
201
208
  const fixedParams = this.fixedParamsManager.getParams(rawResourceName ? rawResourceName : resource, action);
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@nocobase/acl",
3
- "version": "1.9.23",
3
+ "version": "1.9.25",
4
4
  "description": "",
5
5
  "license": "AGPL-3.0",
6
6
  "main": "./lib/index.js",
7
7
  "types": "./lib/index.d.ts",
8
8
  "dependencies": {
9
- "@nocobase/resourcer": "1.9.23",
10
- "@nocobase/utils": "1.9.23",
9
+ "@nocobase/resourcer": "1.9.25",
10
+ "@nocobase/utils": "1.9.25",
11
11
  "minimatch": "^5.1.1"
12
12
  },
13
13
  "repository": {
@@ -15,5 +15,5 @@
15
15
  "url": "git+https://github.com/nocobase/nocobase.git",
16
16
  "directory": "packages/acl"
17
17
  },
18
- "gitHead": "da3bff5691d405115b843f4ad634da2cc70395d8"
18
+ "gitHead": "263145e2a39b6c3a636168c0bb574c9f44af8398"
19
19
  }