Skip to content
Snippets Groups Projects
Commit 3ccdf9af authored by Nils Mittler's avatar Nils Mittler
Browse files

Merge branch 'revert-c767bb74' into 'master'

Revert "Merge branch 'fix-user-role-in-comment-list' into 'master'"

See merge request arsnova/frag.jetzt!495
parents cd2b4f35 f1332188
No related merge requests found
......@@ -94,6 +94,7 @@ export class CommentListComponent implements OnInit, OnDestroy {
this.authenticationService.watchUser.subscribe(newUser => {
if (newUser) {
this.user = newUser;
this.userRole = this.user.role;
if (this.userRole === 0) {
this.voteService.getByRoomIdAndUserID(this.roomId, this.user.id).subscribe(votes => {
for (const v of votes) {
......@@ -103,7 +104,6 @@ export class CommentListComponent implements OnInit, OnDestroy {
}
}
});
this.userRole = this.route.snapshot.data.roles[0];
this.route.params.subscribe(params => {
this.shortId = params['shortId'];
this.authenticationService.guestLogin(UserRole.PARTICIPANT).subscribe(r => {
......
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