From a024f87076a1fe81c812897cc74766ac45ef8d4c Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Mon, 8 Jul 2019 19:21:23 +0200 Subject: [PATCH] change createmodel function --- Controller/ApiController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Controller/ApiController.php b/Controller/ApiController.php index 2aa6dec..82e383f 100644 --- a/Controller/ApiController.php +++ b/Controller/ApiController.php @@ -113,7 +113,7 @@ final class ApiController extends Controller } $tag = $this->createTagFromRequest($request); - $this->createModel($request, $tag, TagMapper::class, 'tag'); + $this->createModel($request->getHeader()->getAccount(), $tag, TagMapper::class, 'tag'); $this->fillJsonResponse($request, $response, NotificationLevel::OK, 'Tag', 'Tag successfully created', $tag); }