From d2ec742b29653caf0d0ebe08a0560716355bf1e8 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 dbd537b..70f07ec 100644 --- a/Controller/ApiController.php +++ b/Controller/ApiController.php @@ -137,7 +137,7 @@ final class ApiController extends Controller } $newsArticle = $this->createNewsArticleFromRequest($request); - $this->createModel($request, $newsArticle, NewsArticleMapper::class, 'news'); + $this->createModel($request->getHeader()->getAccount(), $newsArticle, NewsArticleMapper::class, 'news'); $this->fillJsonResponse($request, $response, NotificationLevel::OK, 'News', 'News successfully created', $newsArticle); }