@resolveio/client-lib-core 2.0.3 → 2.0.5
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/esm2020/lib/auth/auth-guard.service.mjs +7 -7
- package/fesm2015/resolveio-client-lib-core.mjs +6 -6
- package/fesm2015/resolveio-client-lib-core.mjs.map +1 -1
- package/fesm2020/resolveio-client-lib-core.mjs +6 -6
- package/fesm2020/resolveio-client-lib-core.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -7513,10 +7513,10 @@ const AuthGuard = (next) => {
|
|
|
7513
7513
|
resolve(false);
|
|
7514
7514
|
}
|
|
7515
7515
|
else {
|
|
7516
|
-
|
|
7517
|
-
console.log(next.pathFromRoot);
|
|
7518
|
-
let view = next.url.map(a => a.path).join().replace(/^(\/[-a-z]+\/[^\/]+)\/.*$/, '$1').replace(/\?.+/, '');
|
|
7516
|
+
let view = next.pathFromRoot.map(v => v.url.map(segment => segment.toString()).join('/')).join('/');
|
|
7519
7517
|
let moduleView = view.replace(/^(\/.*\/).*/, '$1');
|
|
7518
|
+
console.log(view);
|
|
7519
|
+
console.log(moduleView);
|
|
7520
7520
|
if (user.roles.super_admin) {
|
|
7521
7521
|
resolve(true);
|
|
7522
7522
|
}
|
|
@@ -7550,10 +7550,10 @@ const AuthGuard = (next) => {
|
|
|
7550
7550
|
resolve(false);
|
|
7551
7551
|
}
|
|
7552
7552
|
else {
|
|
7553
|
-
|
|
7554
|
-
console.log(next.pathFromRoot);
|
|
7555
|
-
let view = next.url.map(a => a.path).join().replace(/^(\/[-a-z]+\/[^\/]+)\/.*$/, '$1').replace(/\?.+/, '');
|
|
7553
|
+
let view = next.pathFromRoot.map(v => v.url.map(segment => segment.toString()).join('/')).join('/');
|
|
7556
7554
|
let moduleView = view.replace(/^(\/.*\/).*/, '$1');
|
|
7555
|
+
console.log(view);
|
|
7556
|
+
console.log(moduleView);
|
|
7557
7557
|
if (user.roles.super_admin) {
|
|
7558
7558
|
resolve(true);
|
|
7559
7559
|
}
|