mirror of
https://github.com/Karaka-Management/oms-Profile.git
synced 2026-02-06 11:08:40 +00:00
add ip support for auditor
This commit is contained in:
parent
3f07a4cdc9
commit
24beb23644
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user