From 43ab21faf456444624fcb80005beade78e11c44a Mon Sep 17 00:00:00 2001
From: L4168 <L4168@student.jamk.fi>
Date: Mon, 22 Jul 2019 11:59:33 +0300
Subject: [PATCH] permit drawing in PAUSED state

---
 src/draw/draw.controller.ts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/draw/draw.controller.ts b/src/draw/draw.controller.ts
index 08b4939..9831871 100644
--- a/src/draw/draw.controller.ts
+++ b/src/draw/draw.controller.ts
@@ -24,14 +24,14 @@ import { GamePerson } from 'src/game/gameperson.decorator';
 ///     MapDrawingDTO data to database.                                ///
 ///     Data return functions require atleast spectator role.          ///
 //////////////////////////////////////////////////////////////////////////
-  
+
 @Controller('draw')
 export class DrawController {
   constructor(private drawService: DrawService) {}
 
   @Put('mapdrawing/:id')
   @Roles('admin', 'factionleader')
-  @GameStates('CREATED', 'STARTED')
+  @GameStates('CREATED', 'STARTED', 'PAUSED')
   @UsePipes(new ValidationPipe())
   async draw(
     @GamePerson() gameperson,
-- 
GitLab