We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 525a206 commit 5d5fa23Copy full SHA for 5d5fa23
src/app/shared/guards/administration-guard.service.ts
@@ -34,8 +34,7 @@ export class AdministrationProjectGuard implements CanActivate {
34
35
async canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot) {
36
let islogged = false;
37
- await this.userService.
38
- .then(res => islogged = res);
+ await this.userService.handleIsLogged().then(res => islogged = res);
39
if (!islogged) { return false; }
40
41
await this.userService.AnyLocalPermissions();
0 commit comments