hola-server 0.6.7 → 0.6.8

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/http/session.js +5 -1
  2. package/package.json +1 -1
package/http/session.js CHANGED
@@ -52,7 +52,11 @@ const get_user_role_mode = (req, roles) => {
52
52
  const role_name = role_settings[0];
53
53
  const role_mode = role_settings[1];
54
54
  if (user_role == role_name) {
55
- return role_mode;
55
+ if (role_mode == "*") {
56
+ return mode_all;
57
+ } else {
58
+ return role_mode;
59
+ }
56
60
  }
57
61
  }
58
62
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hola-server",
3
- "version": "0.6.7",
3
+ "version": "0.6.8",
4
4
  "description": "a meta programming framework used to build nodejs restful api",
5
5
  "main": "index.js",
6
6
  "scripts": {