Skip to content
Snippets Groups Projects
Commit dfc01b59 authored by Hagen Dreßler's avatar Hagen Dreßler
Browse files

Edit authentication for component create-comment

parent 196ad757
No related merge requests found
......@@ -31,7 +31,8 @@ const routes: Routes = [
},
{ path: 'room/:roomId/create-comment',
component: CreateCommentComponent,
canActivate: [AuthenticationGuard]
canActivate: [AuthenticationGuard],
data: { roles: [UserRole.PARTICIPANT] }
},
{ path: '**', component: PageNotFoundComponent }
];
......
......@@ -7,6 +7,10 @@
<mat-list-item>Name: {{room.name}}</mat-list-item>
<mat-list-item>Description: {{room.description}}</mat-list-item>
<mat-list-item>Closed: {{room.closed}}</mat-list-item>
<button mat-button routerLink="/room/{{room.id}}/create-comment">
Create comment
</button>
</mat-list>
<!-- content-type of room-->
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