Skip to content

Commit 5d5fa23

Browse files
no message
1 parent 525a206 commit 5d5fa23

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/app/shared/guards/administration-guard.service.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ export class AdministrationProjectGuard implements CanActivate {
3434

3535
async canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot) {
3636
let islogged = false;
37-
await this.userService.
38-
.then(res => islogged = res);
37+
await this.userService.handleIsLogged().then(res => islogged = res);
3938
if (!islogged) { return false; }
4039

4140
await this.userService.AnyLocalPermissions();

0 commit comments

Comments
 (0)