Skip to content
Snippets Groups Projects
Commit e32f2386 authored by L4168's avatar L4168
Browse files

added GameStates guard

parent 612292da
No related branches found
No related tags found
3 merge requests!59Development to master,!36Development,!32Game state
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment