add ip support for auditor

This commit is contained in:
Dennis Eichhorn 2020-05-31 22:49:58 +02:00
parent 3f07a4cdc9
commit 24beb23644
2 changed files with 4 additions and 4 deletions

View File

@ -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);
}
}

View File

@ -51,8 +51,8 @@ $next = empty($accounts) ? '{/prefix}profile/list' : '{/prefix}profile/list?
<?php endif; ?>
</table>
<div class="portlet-foot">
<a class="button" href="<?= UriFactory::build($previous); ?>"><?= $this->getHtml('Previous', '0', '0'); ?></a>
<a class="button" href="<?= UriFactory::build($next); ?>"><?= $this->getHtml('Next', '0', '0'); ?></a>
<a tabindex="0" class="button" href="<?= UriFactory::build($previous); ?>"><?= $this->getHtml('Previous', '0', '0'); ?></a>
<a tabindex="0" class="button" href="<?= UriFactory::build($next); ?>"><?= $this->getHtml('Next', '0', '0'); ?></a>
</div>
</div>
</div>