From 24beb2364440e10eb079513887376abd46d3cf81 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 | 4 ++-- Theme/Backend/profile-list.tpl.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Controller/ApiController.php b/Controller/ApiController.php index 66f6550..52d8b71 100644 --- a/Controller/ApiController.php +++ b/Controller/ApiController.php @@ -86,7 +86,7 @@ final class ApiController extends Controller return false; } - $this->createModel($request->getHeader()->getAccount(), $profile, ProfileMapper::class, 'profile'); + $this->createModel($request->getHeader()->getAccount(), $profile, ProfileMapper::class, 'profile', $request->getOrigin()); return true; } @@ -157,7 +157,7 @@ final class ApiController extends Controller $profile->setImage(\reset($uploaded)); - $this->updateModel($request->getHeader()->getAccount(), $old, $profile, ProfileMapper::class, 'profile'); + $this->updateModel($request->getHeader()->getAccount(), $old, $profile, ProfileMapper::class, 'profile', $request->getOrigin()); $this->fillJsonResponse($request, $response, NotificationLevel::OK, 'Profile', 'Profile successfully updated', $profile); } } diff --git a/Theme/Backend/profile-list.tpl.php b/Theme/Backend/profile-list.tpl.php index ec4f979..0ea3276 100644 --- a/Theme/Backend/profile-list.tpl.php +++ b/Theme/Backend/profile-list.tpl.php @@ -51,8 +51,8 @@ $next = empty($accounts) ? '{/prefix}profile/list' : '{/prefix}profile/list?
- getHtml('Previous', '0', '0'); ?> - getHtml('Next', '0', '0'); ?> + getHtml('Previous', '0', '0'); ?> + getHtml('Next', '0', '0'); ?>