@nocobase/plugin-acl 0.9.2-alpha.2 → 0.9.2-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.
- package/lib/actions/role-check.js +1 -1
- package/lib/collections/users.d.ts +1 -1
- package/lib/server.js +1 -1
- package/package.json +6 -6
|
@@ -24,7 +24,7 @@ const map2obj = map => {
|
|
|
24
24
|
_step;
|
|
25
25
|
try {
|
|
26
26
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
27
|
-
|
|
27
|
+
const _step$value = _slicedToArray(_step.value, 2),
|
|
28
28
|
key = _step$value[0],
|
|
29
29
|
value = _step$value[1];
|
|
30
30
|
obj[key] = value;
|
package/lib/server.js
CHANGED
|
@@ -678,7 +678,7 @@ class PluginACL extends _server().Plugin {
|
|
|
678
678
|
}
|
|
679
679
|
} else {
|
|
680
680
|
var _action$params;
|
|
681
|
-
const filter = parseJsonTemplate((action === null || action === void 0 ? void 0 : (_action$params = action.params) === null || _action$params === void 0 ? void 0 : _action$params.filter) || {}, ctx);
|
|
681
|
+
const filter = yield parseJsonTemplate((action === null || action === void 0 ? void 0 : (_action$params = action.params) === null || _action$params === void 0 ? void 0 : _action$params.filter) || {}, ctx);
|
|
682
682
|
const sourceInstance = yield ctx.db.getRepository(collectionName).findOne({
|
|
683
683
|
filterByTk: resourceOf,
|
|
684
684
|
filter
|
package/package.json
CHANGED
|
@@ -4,20 +4,20 @@
|
|
|
4
4
|
"displayName.zh-CN": "权限控制",
|
|
5
5
|
"description": "A simple access control based on roles, resources and actions",
|
|
6
6
|
"description.zh-CN": "基于角色、资源和操作的权限控制插件",
|
|
7
|
-
"version": "0.9.2-alpha.
|
|
7
|
+
"version": "0.9.2-alpha.4",
|
|
8
8
|
"license": "AGPL-3.0",
|
|
9
9
|
"main": "./lib/index.js",
|
|
10
10
|
"types": "./lib/index.d.ts",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@nocobase/acl": "0.9.2-alpha.
|
|
13
|
-
"@nocobase/database": "0.9.2-alpha.
|
|
14
|
-
"@nocobase/plugin-users": "0.9.2-alpha.
|
|
15
|
-
"@nocobase/server": "0.9.2-alpha.
|
|
12
|
+
"@nocobase/acl": "0.9.2-alpha.4",
|
|
13
|
+
"@nocobase/database": "0.9.2-alpha.4",
|
|
14
|
+
"@nocobase/plugin-users": "0.9.2-alpha.4",
|
|
15
|
+
"@nocobase/server": "0.9.2-alpha.4"
|
|
16
16
|
},
|
|
17
17
|
"repository": {
|
|
18
18
|
"type": "git",
|
|
19
19
|
"url": "git+https://github.com/nocobase/nocobase.git",
|
|
20
20
|
"directory": "packages/plugins/acl"
|
|
21
21
|
},
|
|
22
|
-
"gitHead": "
|
|
22
|
+
"gitHead": "96cb023f353a4fb099dea074c575be65ebab813f"
|
|
23
23
|
}
|