mirror of
https://github.com/Karaka-Management/oms-Script.git
synced 2026-01-20 00:18:41 +00:00
add ip support for auditor
This commit is contained in:
parent
548d5334c8
commit
0e0fa1c954
|
|
@ -301,10 +301,11 @@ final class ApiController extends Controller
|
|||
null,
|
||||
PermissionType::READ | PermissionType::MODIFY | PermissionType::DELETE | PermissionType::PERMISSION,
|
||||
),
|
||||
$request->getHeader()->getAccount()
|
||||
$request->getHeader()->getAccount(),
|
||||
$request->getOrigin()
|
||||
);
|
||||
|
||||
$this->createModel($request->getHeader()->getAccount(), $template, TemplateMapper::class, 'template');
|
||||
$this->createModel($request->getHeader()->getAccount(), $template, TemplateMapper::class, 'template', $request->getOrigin());
|
||||
$this->fillJsonResponse($request, $response, NotificationLevel::OK, 'Template', 'Template successfully created', $template);
|
||||
}
|
||||
|
||||
|
|
@ -403,10 +404,11 @@ final class ApiController extends Controller
|
|||
null,
|
||||
PermissionType::READ | PermissionType::MODIFY | PermissionType::DELETE | PermissionType::PERMISSION,
|
||||
),
|
||||
$request->getHeader()->getAccount()
|
||||
$request->getHeader()->getAccount(),
|
||||
$request->getOrigin()
|
||||
);
|
||||
|
||||
$this->createModel($request->getHeader()->getAccount(), $report, ReportMapper::class, 'report');
|
||||
$this->createModel($request->getHeader()->getAccount(), $report, ReportMapper::class, 'report', $request->getOrigin());
|
||||
$this->fillJsonResponse($request, $response, NotificationLevel::OK, 'Report', 'Report successfully created', $report);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ echo $this->getData('nav')->render(); ?>
|
|||
<div class="bc-1">
|
||||
<ul class="l-1">
|
||||
<li>
|
||||
<a href="<?= \phpOMS\Uri\UriFactory::build('{/prefix}helper/single?{?}&id=' . $this->getData('name')); ?>"
|
||||
<a tabindex="0" href="<?= \phpOMS\Uri\UriFactory::build('{/prefix}helper/single?{?}&id=' . $this->getData('name')); ?>"
|
||||
class="button"><?= $this->getHtml('Report') ?></a>
|
||||
</ul>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -54,8 +54,8 @@ echo $this->getData('nav')->render(); ?>
|
|||
<?php endforeach; ?>
|
||||
</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>
|
||||
|
|
|
|||
|
|
@ -81,7 +81,7 @@ echo $this->getData('nav')->render(); ?>
|
|||
|
||||
</select>
|
||||
<tr>
|
||||
<td><a target="_blank" class="button" href="<?= UriFactory::build('{/api}helper/report/export?{?}'); ?>&type={#iExport}&lang={#iLang}{#iUiSettings}"><?= $this->getHtml('Export'); ?></a>
|
||||
<td><a tabindex="0" target="_blank" class="button" href="<?= UriFactory::build('{/api}helper/report/export?{?}'); ?>&type={#iExport}&lang={#iLang}{#iUiSettings}"><?= $this->getHtml('Export'); ?></a>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
|
|
@ -100,7 +100,7 @@ echo $this->getData('nav')->render(); ?>
|
|||
<?php endforeach; ?>
|
||||
</table>
|
||||
</div>
|
||||
<div class="portlet-foot"><a class="button" href="<?= UriFactory::build('{%}');?>&type={#iExport}&lang={#iLang}{#iUiSettings}"><?= $this->getHtml('Load'); ?></a></div>
|
||||
<div class="portlet-foot"><a tabindex="0" class="button" href="<?= UriFactory::build('{%}');?>&type={#iExport}&lang={#iLang}{#iUiSettings}"><?= $this->getHtml('Load'); ?></a></div>
|
||||
</form>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user