Skip to content
Snippets Groups Projects
Commit 493faf71 authored by Ruben Bimberg's avatar Ruben Bimberg :computer:
Browse files

Do not change role on moderation board

[Ticket: #715]
parent 5ef36520
No related merge requests found
...@@ -204,7 +204,7 @@ ...@@ -204,7 +204,7 @@
tabindex="0" tabindex="0"
*ngIf="userRole > 0 && !router.url.includes('/participant/') && *ngIf="userRole > 0 && !router.url.includes('/participant/') &&
!router.url.endsWith('moderator/comments')" !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> <mat-icon>visibility_off</mat-icon>
<span>{{'header.moderationboard' | translate}}</span> <span>{{'header.moderationboard' | translate}}</span>
</button> </button>
......
...@@ -91,10 +91,10 @@ export class HeaderComponent implements OnInit, AfterViewInit { ...@@ -91,10 +91,10 @@ export class HeaderComponent implements OnInit, AfterViewInit {
this.isInRouteWithRoles = true; this.isInRouteWithRoles = true;
} else if (url.startsWith('/moderator/')) { } else if (url.startsWith('/moderator/')) {
this.userRole = UserRole.EXECUTIVE_MODERATOR; this.userRole = UserRole.EXECUTIVE_MODERATOR;
this.isInRouteWithRoles = true; this.isInRouteWithRoles = !url.endsWith('/moderator/comments');
} else if (url.startsWith('/creator/')) { } else if (url.startsWith('/creator/')) {
this.userRole = UserRole.CREATOR; this.userRole = UserRole.CREATOR;
this.isInRouteWithRoles = true; this.isInRouteWithRoles = !url.endsWith('/moderator/comments');
} else { } else {
this.userRole = this.user ? this.user.role : UserRole.PARTICIPANT; this.userRole = this.user ? this.user.role : UserRole.PARTICIPANT;
this.isInRouteWithRoles = false; this.isInRouteWithRoles = false;
......
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