Skip to content
Snippets Groups Projects
Commit 98653cb6 authored by Lukas Mauß's avatar Lukas Mauß
Browse files

Fix session-creation for guest lecturer

parent 8dfb2ad0
No related merge requests found
......@@ -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();
}
});
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment