@nocobase/acl 0.21.0-alpha.5 → 0.21.0-alpha.7

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 +2 -1
  2. package/package.json +4 -4
package/lib/acl.js CHANGED
@@ -159,7 +159,8 @@ const _ACL = class _ACL extends import_events.default {
159
159
  if (!aclRole) {
160
160
  return null;
161
161
  }
162
- const snippetAllowed = aclRole.snippetAllowed(`${resource}:${action}`);
162
+ const actionPath = `${resource}:${action}`;
163
+ const snippetAllowed = aclRole.snippetAllowed(actionPath);
163
164
  const fixedParams = this.fixedParamsManager.getParams(resource, action);
164
165
  const mergeParams = /* @__PURE__ */ __name((result) => {
165
166
  const params = result["params"] || {};
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@nocobase/acl",
3
- "version": "0.21.0-alpha.5",
3
+ "version": "0.21.0-alpha.7",
4
4
  "description": "",
5
5
  "license": "Apache-2.0",
6
6
  "main": "./lib/index.js",
7
7
  "types": "./lib/index.d.ts",
8
8
  "dependencies": {
9
- "@nocobase/resourcer": "0.21.0-alpha.5",
10
- "@nocobase/utils": "0.21.0-alpha.5",
9
+ "@nocobase/resourcer": "0.21.0-alpha.7",
10
+ "@nocobase/utils": "0.21.0-alpha.7",
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": "20ed1453da807587b0dc628d167c815156bf9ad4"
18
+ "gitHead": "b1be3993f8aa81173d01bc390aa8e4c5adcc0e2d"
19
19
  }