@nocobase/acl 1.9.0-beta.2 → 1.9.0-beta.4
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.
- package/lib/acl.js +3 -0
- 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.
|
|
3
|
+
"version": "1.9.0-beta.4",
|
|
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.
|
|
10
|
-
"@nocobase/utils": "1.9.0-beta.
|
|
9
|
+
"@nocobase/resourcer": "1.9.0-beta.4",
|
|
10
|
+
"@nocobase/utils": "1.9.0-beta.4",
|
|
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": "
|
|
18
|
+
"gitHead": "0276aa12d87f82c73d62a9712134fe363e2c772a"
|
|
19
19
|
}
|