add ip support for auditor

This commit is contained in:
Dennis Eichhorn 2020-05-31 22:49:58 +02:00
parent 548d5334c8
commit 0e0fa1c954
4 changed files with 11 additions and 9 deletions

View File

@ -301,10 +301,11 @@ final class ApiController extends Controller
null, null,
PermissionType::READ | PermissionType::MODIFY | PermissionType::DELETE | PermissionType::PERMISSION, 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); $this->fillJsonResponse($request, $response, NotificationLevel::OK, 'Template', 'Template successfully created', $template);
} }
@ -403,10 +404,11 @@ final class ApiController extends Controller
null, null,
PermissionType::READ | PermissionType::MODIFY | PermissionType::DELETE | PermissionType::PERMISSION, 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); $this->fillJsonResponse($request, $response, NotificationLevel::OK, 'Report', 'Report successfully created', $report);
} }

View File

@ -25,7 +25,7 @@ echo $this->getData('nav')->render(); ?>
<div class="bc-1"> <div class="bc-1">
<ul class="l-1"> <ul class="l-1">
<li> <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> class="button"><?= $this->getHtml('Report') ?></a>
</ul> </ul>
</div> </div>

View File

@ -54,8 +54,8 @@ echo $this->getData('nav')->render(); ?>
<?php endforeach; ?> <?php endforeach; ?>
</table> </table>
<div class="portlet-foot"> <div class="portlet-foot">
<a class="button" href="<?= UriFactory::build($previous); ?>"><?= $this->getHtml('Previous', '0', '0'); ?></a> <a tabindex="0" 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($next); ?>"><?= $this->getHtml('Next', '0', '0'); ?></a>
</div> </div>
</div> </div>
</div> </div>

View File

@ -81,7 +81,7 @@ echo $this->getData('nav')->render(); ?>
</select> </select>
<tr> <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> </table>
</form> </form>
</div> </div>
@ -100,7 +100,7 @@ echo $this->getData('nav')->render(); ?>
<?php endforeach; ?> <?php endforeach; ?>
</table> </table>
</div> </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> </form>
</div> </div>
<?php endif; ?> <?php endif; ?>