From 0ef626e00eefc0c975fe820b508ccb6946e6c39e Mon Sep 17 00:00:00 2001
From: L4168 <L4168@student.jamk.fi>
Date: Mon, 15 Jul 2019 12:51:43 +0300
Subject: [PATCH] allow factionleader to leace faction

---
 src/faction/faction.controller.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/faction/faction.controller.ts b/src/faction/faction.controller.ts
index f430c3e..60ae33a 100644
--- a/src/faction/faction.controller.ts
+++ b/src/faction/faction.controller.ts
@@ -95,7 +95,7 @@ export class FactionController {
   // used to leave a faction
   // :id is the if of the game
   @Delete('leave/:id')
-  @Roles('soldier')
+  @Roles('soldier', 'factionleader')
   @GameStates('CREATED')
   leaveFaction(@GamePerson('gamepersonId') gamepersonId) {
     return this.factionservice.leaveFaction(gamepersonId);
-- 
GitLab