From 98653cb6a96c1648a6fff14b28f3d42043eb6d61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Mau=C3=9F?= <lukas.mauss@mni.thm.de> Date: Mon, 11 Mar 2019 18:53:07 +0100 Subject: [PATCH] Fix session-creation for guest lecturer --- src/app/components/home/new-landing/new-landing.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 5cd13c6be..450ebd8a0 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(); } }); -- GitLab