From 60198589c929b2c93bef23f916016375e92381da 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 4520c63..3d32e91 100644 --- a/Controller/ApiController.php +++ b/Controller/ApiController.php @@ -77,7 +77,7 @@ final class ApiController extends Controller } $doc = $this->createDocFromRequest($request); - $this->createModel($request, $doc, EditorDocMapper::class, 'doc'); + $this->createModel($request->getHeader()->getAccount(), $doc, EditorDocMapper::class, 'doc'); $this->fillJsonResponse($request, $response, NotificationLevel::OK, 'Document', 'Document successfully created', $doc); }