diff --git a/src/task/task.controller.ts b/src/task/task.controller.ts index 2e0478959456215a4462ddc2f94a63490d8627ef..32766ffd6bc1c6f5f51a5234ae2024bc345582e2 100644 --- a/src/task/task.controller.ts +++ b/src/task/task.controller.ts @@ -37,8 +37,10 @@ export class TaskController { return this.taskService.editTask(data); } + // lists all the tasks for the game if user has game_person entry + // :id is the id of the game @Get('get-tasks/:id') - @UseGuards(new AuthGuard()) + @Roles('soldier', 'factionleader', 'admin') async fetchTasks(@User('id') person, @Param('id') id: string) { return this.taskService.fetchTasks(person, id); }