diff --git a/src/app/components/home/new-landing/new-landing.component.ts b/src/app/components/home/new-landing/new-landing.component.ts index 5cd13c6be9e8e291bc83ffba65f501618c939104..450ebd8a027dca1d699b68eb4ca127a2af87e2c7 100644 --- a/src/app/components/home/new-landing/new-landing.component.ts +++ b/src/app/components/home/new-landing/new-landing.component.ts @@ -34,7 +34,7 @@ export class NewLandingComponent implements OnInit { } createSession() { - if (!this.user || this.user.isGuest) { + if (!this.user) { this.openLoginDialog(); } else { this.openCreateRoomDialog(); @@ -56,7 +56,7 @@ export class NewLandingComponent implements OnInit { dialogRef.componentInstance.guestAllowed = this.authentication.lecturer.allowGuest; dialogRef.afterClosed() .subscribe(result => { - if (this.user && !this.user.isGuest) { + if (this.user) { this.openCreateRoomDialog(); } });