Skip to content
Snippets Groups Projects
Commit ece85cc9 authored by Tom Käsler's avatar Tom Käsler
Browse files

Merge branch '204-creation-a-session-as-guest-doesn-t-work' into 'master'

Fix session-creation for guest lecturer

Closes #204

See merge request arsnova/arsnova-lite!163
parents 8dfb2ad0 98653cb6
No related merge requests found
...@@ -34,7 +34,7 @@ export class NewLandingComponent implements OnInit { ...@@ -34,7 +34,7 @@ export class NewLandingComponent implements OnInit {
} }
createSession() { createSession() {
if (!this.user || this.user.isGuest) { if (!this.user) {
this.openLoginDialog(); this.openLoginDialog();
} else { } else {
this.openCreateRoomDialog(); this.openCreateRoomDialog();
...@@ -56,7 +56,7 @@ export class NewLandingComponent implements OnInit { ...@@ -56,7 +56,7 @@ export class NewLandingComponent implements OnInit {
dialogRef.componentInstance.guestAllowed = this.authentication.lecturer.allowGuest; dialogRef.componentInstance.guestAllowed = this.authentication.lecturer.allowGuest;
dialogRef.afterClosed() dialogRef.afterClosed()
.subscribe(result => { .subscribe(result => {
if (this.user && !this.user.isGuest) { if (this.user) {
this.openCreateRoomDialog(); 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