diff --git a/src/draw/draw.controller.ts b/src/draw/draw.controller.ts index 21306d7ae91e565a5459138229a384e21fd68abd..10b836118855d17bee7856203b1258f4b572c8d5 100644 --- a/src/draw/draw.controller.ts +++ b/src/draw/draw.controller.ts @@ -11,7 +11,7 @@ import { import { AuthGuard } from '../shared/auth.guard'; import { DrawService } from './draw.service'; -import { Roles } from '../shared/roles.decorator'; +import { Roles, GameStates } from '../shared/guard.decorator'; /* DrawController @@ -27,6 +27,7 @@ export class DrawController { @Put('mapdrawing/:id') @UsePipes(new ValidationPipe()) @Roles('admin', 'factionleader') + @GameStates('CREATED', 'STARTED') async draw(@Param('id') gameId, @Body() data) { return this.drawService.draw(gameId, data); }