diff --git a/src/app/components/shared/header/header.component.html b/src/app/components/shared/header/header.component.html index 710516cdbe302118f37f360760061a1e67a4571c..c5a79ee78e00afdd7069c27333f49e271ae0bd5f 100644 --- a/src/app/components/shared/header/header.component.html +++ b/src/app/components/shared/header/header.component.html @@ -204,7 +204,7 @@ tabindex="0" *ngIf="userRole > 0 && !router.url.includes('/participant/') && !router.url.endsWith('moderator/comments')" - routerLink="moderator/room/{{shortId}}/moderator/comments"> + [routerLink]="(userRole === 3 ? 'creator' : 'moderator') + '/room/' + shortId + '/moderator/comments'"> <mat-icon>visibility_off</mat-icon> <span>{{'header.moderationboard' | translate}}</span> </button> diff --git a/src/app/components/shared/header/header.component.ts b/src/app/components/shared/header/header.component.ts index d7a3323b0298d1b5ce4ab1227c116602f6bc93e1..b522154bcbb39519364bfcdb8c18762f78b2e17e 100644 --- a/src/app/components/shared/header/header.component.ts +++ b/src/app/components/shared/header/header.component.ts @@ -91,10 +91,10 @@ export class HeaderComponent implements OnInit, AfterViewInit { this.isInRouteWithRoles = true; } else if (url.startsWith('/moderator/')) { this.userRole = UserRole.EXECUTIVE_MODERATOR; - this.isInRouteWithRoles = true; + this.isInRouteWithRoles = !url.endsWith('/moderator/comments'); } else if (url.startsWith('/creator/')) { this.userRole = UserRole.CREATOR; - this.isInRouteWithRoles = true; + this.isInRouteWithRoles = !url.endsWith('/moderator/comments'); } else { this.userRole = this.user ? this.user.role : UserRole.PARTICIPANT; this.isInRouteWithRoles = false;