show on API keys page wether api access is allowed
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -2071,3 +2071,4 @@ $lng['serversettings']['ssl']['tlsv13_cipher_list']['title'] = 'Configure explic
|
|||||||
$lng['serversettings']['ssl']['tlsv13_cipher_list']['description'] = 'This is a list of ciphers that you want (or don\'t want) to use when talking TLSv1.3. For a list of ciphers and how to include/exclude them, see <a href="https://wiki.openssl.org/index.php/TLS1.3">the docs for TLSv1.3</a>.<br /><br /><b>Default value is empty</b>';
|
$lng['serversettings']['ssl']['tlsv13_cipher_list']['description'] = 'This is a list of ciphers that you want (or don\'t want) to use when talking TLSv1.3. For a list of ciphers and how to include/exclude them, see <a href="https://wiki.openssl.org/index.php/TLS1.3">the docs for TLSv1.3</a>.<br /><br /><b>Default value is empty</b>';
|
||||||
$lng['usersettings']['api_allowed']['title'] = 'Allow API access';
|
$lng['usersettings']['api_allowed']['title'] = 'Allow API access';
|
||||||
$lng['usersettings']['api_allowed']['description'] = 'When enabled in the settings, this user can create API keys and access the froxlor API';
|
$lng['usersettings']['api_allowed']['description'] = 'When enabled in the settings, this user can create API keys and access the froxlor API';
|
||||||
|
$lng['usersettings']['api_allowed']['notice'] = 'API access is not allowed for your account.';
|
||||||
|
|||||||
@@ -1718,3 +1718,4 @@ $lng['serversettings']['ssl']['tlsv13_cipher_list']['title'] = 'Explizite TLSv1.
|
|||||||
$lng['serversettings']['ssl']['tlsv13_cipher_list']['description'] = 'Dies ist eine Liste von Ciphers, die genutzt werden sollen (oder auch nicht genutzt werden sollen), wenn eine TLSv1.3 Verbindung hergestellt werden soll. Eine Liste aller Ciphers und wie diese hinzugefügt/ausgeschlossen werden ist <a href="https://wiki.openssl.org/index.php/TLS1.3">der Dokumentation für TLSv1.3</a> zu entnehmen.<br /><br /><b>Standard-Wert ist leer</b>';
|
$lng['serversettings']['ssl']['tlsv13_cipher_list']['description'] = 'Dies ist eine Liste von Ciphers, die genutzt werden sollen (oder auch nicht genutzt werden sollen), wenn eine TLSv1.3 Verbindung hergestellt werden soll. Eine Liste aller Ciphers und wie diese hinzugefügt/ausgeschlossen werden ist <a href="https://wiki.openssl.org/index.php/TLS1.3">der Dokumentation für TLSv1.3</a> zu entnehmen.<br /><br /><b>Standard-Wert ist leer</b>';
|
||||||
$lng['usersettings']['api_allowed']['title'] = 'Erlaube API Zugriff';
|
$lng['usersettings']['api_allowed']['title'] = 'Erlaube API Zugriff';
|
||||||
$lng['usersettings']['api_allowed']['description'] = 'Wenn in den Einstellungen aktiviert, kann der Benutzer API Schlüssel erstellen und auf die froxlor API Zugreifen';
|
$lng['usersettings']['api_allowed']['description'] = 'Wenn in den Einstellungen aktiviert, kann der Benutzer API Schlüssel erstellen und auf die froxlor API Zugreifen';
|
||||||
|
$lng['usersettings']['api_allowed']['notice'] = 'API Zugriff ist für dieses Konto deaktiviert.';
|
||||||
|
|||||||
13
templates/Sparkle/api_keys/keys_list.tpl
vendored
13
templates/Sparkle/api_keys/keys_list.tpl
vendored
@@ -16,6 +16,15 @@
|
|||||||
</div>
|
</div>
|
||||||
</if>
|
</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>
|
<section>
|
||||||
|
|
||||||
<form action="{$linker->getLink(array('section' => 'index', 'page' => $page))}" method="post" enctype="application/x-www-form-urlencoded">
|
<form action="{$linker->getLink(array('section' => 'index', 'page' => $page))}" method="post" enctype="application/x-www-form-urlencoded">
|
||||||
@@ -26,10 +35,12 @@
|
|||||||
{$searchcode}
|
{$searchcode}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<if (int)$userinfo['api_allowed'] == 1>
|
||||||
<div class="overviewadd">
|
<div class="overviewadd">
|
||||||
<img src="templates/{$theme}/assets/img/icons/add.png" alt="" />
|
<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>
|
<a href="{$linker->getLink(array('section' => 'index', 'page' => $page, 'action' => 'add'))}">{$lng['apikeys']['key_add']}</a>
|
||||||
</div>
|
</div>
|
||||||
|
</if>
|
||||||
|
|
||||||
<table class="full hl">
|
<table class="full hl">
|
||||||
<thead>
|
<thead>
|
||||||
@@ -58,11 +69,13 @@
|
|||||||
</form>
|
</form>
|
||||||
|
|
||||||
<if 15 < $count >
|
<if 15 < $count >
|
||||||
|
<if (int)$userinfo['api_allowed'] == 1>
|
||||||
<div class="overviewadd">
|
<div class="overviewadd">
|
||||||
<img src="templates/{$theme}/assets/img/icons/add.png" alt="" />
|
<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>
|
<a href="{$linker->getLink(array('section' => 'index', 'page' => $page, 'action' => 'add'))}">{$lng['apikeys']['key_add']}</a>
|
||||||
</div>
|
</div>
|
||||||
</if>
|
</if>
|
||||||
|
</if>
|
||||||
</section>
|
</section>
|
||||||
</article>
|
</article>
|
||||||
$footer
|
$footer
|
||||||
|
|||||||
Reference in New Issue
Block a user