@nocobase/acl 2.0.0-alpha.36 → 2.0.0-alpha.38
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 +1 -0
- package/package.json +4 -4
package/lib/acl.js
CHANGED
|
@@ -297,6 +297,7 @@ const _ACL = class _ACL extends import_events.default {
|
|
|
297
297
|
middleware() {
|
|
298
298
|
const acl = this;
|
|
299
299
|
return /* @__PURE__ */ __name(async function ACLMiddleware(ctx, next) {
|
|
300
|
+
ctx.acl = acl;
|
|
300
301
|
const roleName = ctx.state.currentRole || "anonymous";
|
|
301
302
|
const { resourceName: rawResourceName, actionName } = ctx.action;
|
|
302
303
|
let resourceName = rawResourceName;
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/acl",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.38",
|
|
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": "2.0.0-alpha.
|
|
10
|
-
"@nocobase/utils": "2.0.0-alpha.
|
|
9
|
+
"@nocobase/resourcer": "2.0.0-alpha.38",
|
|
10
|
+
"@nocobase/utils": "2.0.0-alpha.38",
|
|
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": "30b1723601099007f7641c6ffa4111c880cb44e4"
|
|
19
19
|
}
|