@tachybase/acl 1.3.39 → 1.3.41
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.
|
@@ -47,7 +47,7 @@ const _ACLAvailableStrategy = class _ACLAvailableStrategy {
|
|
|
47
47
|
this.options = options;
|
|
48
48
|
this.allowConfigure = options.allowConfigure;
|
|
49
49
|
let actions = this.options.actions;
|
|
50
|
-
if (import_lodash.default.isString(actions) && actions
|
|
50
|
+
if (import_lodash.default.isString(actions) && actions !== "*") {
|
|
51
51
|
actions = [actions];
|
|
52
52
|
}
|
|
53
53
|
if (import_lodash.default.isArray(actions)) {
|
|
@@ -59,7 +59,7 @@ const _ACLAvailableStrategy = class _ACLAvailableStrategy {
|
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
matchAction(actionName) {
|
|
62
|
-
if (this.options.actions
|
|
62
|
+
if (this.options.actions === "*") {
|
|
63
63
|
return true;
|
|
64
64
|
}
|
|
65
65
|
if (Object.prototype.hasOwnProperty.call(this.actionsAsObject || {}, actionName)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tachybase/acl",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.41",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
"koa-compose": "^4.1.0",
|
|
10
10
|
"lodash": "4.17.21",
|
|
11
11
|
"minimatch": "^5.1.6",
|
|
12
|
-
"@tachybase/resourcer": "1.3.
|
|
13
|
-
"@tachybase/utils": "1.3.
|
|
12
|
+
"@tachybase/resourcer": "1.3.41",
|
|
13
|
+
"@tachybase/utils": "1.3.41"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
16
|
"@types/lodash": "4.17.20",
|