@nocobase/acl 2.0.0-alpha.4 → 2.0.0-alpha.40

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 +1 -0
  2. 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.4",
3
+ "version": "2.0.0-alpha.40",
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.4",
10
- "@nocobase/utils": "2.0.0-alpha.4",
9
+ "@nocobase/resourcer": "2.0.0-alpha.40",
10
+ "@nocobase/utils": "2.0.0-alpha.40",
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": "54f3cab47e7efbdc73377014d05f5fc66a4affbb"
18
+ "gitHead": "dfb9fd33f43e91e676ae7b1f1a595bc38b7c20d2"
19
19
  }