show on API keys page wether api access is allowed

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2019-10-09 11:52:55 +02:00
parent 4543c73b4f
commit 2c23431daf
3 changed files with 15 additions and 0 deletions

View File

@@ -16,6 +16,15 @@
</div>
</if>
<if (int)$userinfo['api_allowed'] != 1>
<div class="messagewrapperfull">
<div class="warningcontainer bradius">
<div class="warningtitle">{$lng['admin']['warning']}</div>
<div class="warning">{$lng['usersettings']['api_allowed']['notice']}</div>
</div>
</div>
</if>
<section>
<form action="{$linker->getLink(array('section' => 'index', 'page' => $page))}" method="post" enctype="application/x-www-form-urlencoded">
@@ -26,10 +35,12 @@
{$searchcode}
</div>
<if (int)$userinfo['api_allowed'] == 1>
<div class="overviewadd">
<img src="templates/{$theme}/assets/img/icons/add.png" alt="" />
<a href="{$linker->getLink(array('section' => 'index', 'page' => $page, 'action' => 'add'))}">{$lng['apikeys']['key_add']}</a>
</div>
</if>
<table class="full hl">
<thead>
@@ -58,11 +69,13 @@
</form>
<if 15 < $count >
<if (int)$userinfo['api_allowed'] == 1>
<div class="overviewadd">
<img src="templates/{$theme}/assets/img/icons/add.png" alt="" />
<a href="{$linker->getLink(array('section' => 'index', 'page' => $page, 'action' => 'add'))}">{$lng['apikeys']['key_add']}</a>
</div>
</if>
</if>
</section>
</article>
$footer