From f129961f77b75bcbcd5b82153a2fdaf419b38c52 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 31 May 2020 22:49:58 +0200 Subject: [PATCH] add ip support for auditor --- Controller/ApiController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Controller/ApiController.php b/Controller/ApiController.php index c6e2f14..549edc0 100644 --- a/Controller/ApiController.php +++ b/Controller/ApiController.php @@ -67,7 +67,7 @@ final class ApiController extends Controller } $card = $this->createKanbanCardFromRquest($request); - $this->createModel($request->getHeader()->getAccount(), $card, KanbanCardMapper::class, 'card'); + $this->createModel($request->getHeader()->getAccount(), $card, KanbanCardMapper::class, 'card', $request->getOrigin()); $this->fillJsonResponse($request, $response, NotificationLevel::OK, 'Card', 'Card successfully created.', $card); } @@ -146,7 +146,7 @@ final class ApiController extends Controller } $board = $this->createKanbanBoardFromRquest($request); - $this->createModel($request->getHeader()->getAccount(), $board, KanbanBoardMapper::class, 'board'); + $this->createModel($request->getHeader()->getAccount(), $board, KanbanBoardMapper::class, 'board',$request->getOrigin()); $this->fillJsonResponse($request, $response, NotificationLevel::OK, 'Board', 'Board successfully created.', $board); } @@ -217,7 +217,7 @@ final class ApiController extends Controller } $column = $this->createKanbanColumnFromRquest($request); - $this->createModel($request->getHeader()->getAccount(), $column, KanbanColumnMapper::class, 'column'); + $this->createModel($request->getHeader()->getAccount(), $column, KanbanColumnMapper::class, 'column', $request->getOrigin()); $this->fillJsonResponse($request, $response, NotificationLevel::OK, 'Column', 'Column successfully created.', $column); }