diff --git a/src/app/components/shared/comment-list/comment-list.component.ts b/src/app/components/shared/comment-list/comment-list.component.ts index f2349930fcde64f85bfd555f0460b88bb08abfd9..71d15e4a007dcf6cb8cf655e965160cf73150ce1 100644 --- a/src/app/components/shared/comment-list/comment-list.component.ts +++ b/src/app/components/shared/comment-list/comment-list.component.ts @@ -428,6 +428,22 @@ export class CommentListComponent implements OnInit, OnDestroy { return c.createdFromLecturer; } }); + const testForModerator=()=>{ + this.comments.forEach(e=>{ + this.commentService.role(e).subscribe(i=>{ + console.log(e,i); + }); + }); + }; + if(type==='moderator'){ + console.log( + 'TEST moderator', + this.moderatorIds, + this.user, + this.room + ); + testForModerator(); + } this.hideCommentsList = true; this.sortComments(this.currentSort); }