@nocobase/plugin-acl 0.8.0-alpha.9 → 0.8.1-alpha.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.
@@ -81,6 +81,8 @@ function _checkAction() {
81
81
  allowMenuItemIds: roleInstance.get('menuUiSchemas').map(uiSchema => uiSchema.get('x-uid')),
82
82
  allowAnonymous: !!anonymous
83
83
  });
84
+ } else {
85
+ throw new Error('Role not found');
84
86
  }
85
87
 
86
88
  yield next();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/plugin-acl",
3
- "version": "0.8.0-alpha.9",
3
+ "version": "0.8.1-alpha.4",
4
4
  "description": "",
5
5
  "license": "Apache-2.0",
6
6
  "licenses": [
@@ -12,15 +12,15 @@
12
12
  "main": "./lib/index.js",
13
13
  "types": "./lib/index.d.ts",
14
14
  "dependencies": {
15
- "@nocobase/acl": "0.8.0-alpha.9",
16
- "@nocobase/database": "0.8.0-alpha.9",
17
- "@nocobase/plugin-users": "0.8.0-alpha.9",
18
- "@nocobase/server": "0.8.0-alpha.9"
15
+ "@nocobase/acl": "0.8.1-alpha.4",
16
+ "@nocobase/database": "0.8.1-alpha.4",
17
+ "@nocobase/plugin-users": "0.8.1-alpha.4",
18
+ "@nocobase/server": "0.8.1-alpha.4"
19
19
  },
20
20
  "repository": {
21
21
  "type": "git",
22
22
  "url": "git+https://github.com/nocobase/nocobase.git",
23
23
  "directory": "packages/plugins/acl"
24
24
  },
25
- "gitHead": "6afe02d59bb22df0f96a7605c9001dcc17a30d6a"
25
+ "gitHead": "22ccdf7bd7fcbd16aeefd5250db237a4bd1ccff1"
26
26
  }
@@ -33,6 +33,8 @@ export async function checkAction(ctx, next) {
33
33
  allowMenuItemIds: roleInstance.get('menuUiSchemas').map((uiSchema) => uiSchema.get('x-uid')),
34
34
  allowAnonymous: !!anonymous,
35
35
  };
36
+ } else {
37
+ throw new Error('Role not found');
36
38
  }
37
39
 
38
40
  await next();