Skip to content

Commit 05178f9

Browse files
no message
1 parent 5d5fa23 commit 05178f9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/app/app.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ export class AppComponent {
202202
}
203203

204204
async getInfo() {
205-
this.isLogged = await this.userService.handleIsLogged(undefined, false);
205+
this.isLogged = await this.userService.handleIsLogged(false);
206206
this.globaldata.auditModule = await this.settingsService.getGeneralSettings().toPromise();
207207
if (this.isLogged && this.route.firstChild && this.route.firstChild.firstChild) {
208208
await this.getProjectInfo();

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export class LoginGuard implements CanActivate {
1212
) { }
1313

1414
async canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Promise<boolean> {
15-
const isLogged = await this.userService.handleIsLogged(undefined, false);
15+
const isLogged = await this.userService.handleIsLogged(false);
1616
if (isLogged) {
1717
this.router.navigate(['/project']);
1818
}

0 commit comments

Comments
 (0)