asv-hlps 1.2.66 → 1.2.68

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/cjs/auth.js CHANGED
@@ -21,6 +21,9 @@ const getAuth = (authUser, authSte, param) => {
21
21
  // ------ multi roles ------
22
22
  // return param?.roles?.length ? this.checkRoles(["sadm", ...param.roles]) : false;
23
23
  }
24
+ else {
25
+ return false;
26
+ }
24
27
  }
25
28
  if ((_c = param === null || param === void 0 ? void 0 : param.steGrps) === null || _c === void 0 ? void 0 : _c.length) {
26
29
  return param.steGrps.includes(authUser.ste.grp.code.toLowerCase());
@@ -7,8 +7,7 @@ export interface IPath {
7
7
  default?: boolean;
8
8
  icon?: string;
9
9
  param?: any;
10
- auth?: AuthParam;
11
- getAuth?: boolean;
10
+ auth?: boolean;
12
11
  ms?: boolean;
13
12
  disabled?: boolean;
14
13
  state?: string | number;
package/lib/esm/auth.js CHANGED
@@ -18,6 +18,9 @@ const getAuth = (authUser, authSte, param) => {
18
18
  // ------ multi roles ------
19
19
  // return param?.roles?.length ? this.checkRoles(["sadm", ...param.roles]) : false;
20
20
  }
21
+ else {
22
+ return false;
23
+ }
21
24
  }
22
25
  if ((_c = param === null || param === void 0 ? void 0 : param.steGrps) === null || _c === void 0 ? void 0 : _c.length) {
23
26
  return param.steGrps.includes(authUser.ste.grp.code.toLowerCase());
@@ -7,8 +7,7 @@ export interface IPath {
7
7
  default?: boolean;
8
8
  icon?: string;
9
9
  param?: any;
10
- auth?: AuthParam;
11
- getAuth?: boolean;
10
+ auth?: boolean;
12
11
  ms?: boolean;
13
12
  disabled?: boolean;
14
13
  state?: string | number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asv-hlps",
3
- "version": "1.2.66",
3
+ "version": "1.2.68",
4
4
  "description": "helpers",
5
5
  "main": "./lib/cjs/index.js",
6
6
  "module": "./lib/esm/index.js",