@nocobase/acl 1.9.0-beta.2 → 1.9.0-beta.5

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 +3 -0
  2. package/package.json +4 -4
package/lib/acl.js CHANGED
@@ -167,6 +167,9 @@ const _ACL = class _ACL extends import_events.default {
167
167
  return import_lodash.default.cloneDeep(this.getCanByRole(options));
168
168
  }
169
169
  if ((_a = options.roles) == null ? void 0 : _a.length) {
170
+ if (options.roles.includes("root")) {
171
+ options.roles = ["root"];
172
+ }
170
173
  return import_lodash.default.cloneDeep(this.getCanByRoles(options));
171
174
  }
172
175
  return null;
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@nocobase/acl",
3
- "version": "1.9.0-beta.2",
3
+ "version": "1.9.0-beta.5",
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.0-beta.2",
10
- "@nocobase/utils": "1.9.0-beta.2",
9
+ "@nocobase/resourcer": "1.9.0-beta.5",
10
+ "@nocobase/utils": "1.9.0-beta.5",
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": "5ff02f5b60ed666fbf8bdea1a202635e77879ee0"
18
+ "gitHead": "9a61c60dd3db5af64244e82447309b0cb17aabb6"
19
19
  }