From 2c23431daf1333c01deba9a70d7c06a27f39fddf Mon Sep 17 00:00:00 2001 From: Michael Kaufmann Date: Wed, 9 Oct 2019 11:52:55 +0200 Subject: [PATCH] show on API keys page wether api access is allowed Signed-off-by: Michael Kaufmann --- lng/english.lng.php | 1 + lng/german.lng.php | 1 + templates/Sparkle/api_keys/keys_list.tpl | 13 +++++++++++++ 3 files changed, 15 insertions(+) diff --git a/lng/english.lng.php b/lng/english.lng.php index 86980a64..076c67da 100644 --- a/lng/english.lng.php +++ b/lng/english.lng.php @@ -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 the docs for TLSv1.3.

Default value is empty'; $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']['notice'] = 'API access is not allowed for your account.'; diff --git a/lng/german.lng.php b/lng/german.lng.php index a4988273..22fb4761 100644 --- a/lng/german.lng.php +++ b/lng/german.lng.php @@ -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 der Dokumentation für TLSv1.3 zu entnehmen.

Standard-Wert ist leer'; $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']['notice'] = 'API Zugriff ist für dieses Konto deaktiviert.'; diff --git a/templates/Sparkle/api_keys/keys_list.tpl b/templates/Sparkle/api_keys/keys_list.tpl index 43cdf15d..2c4407d1 100644 --- a/templates/Sparkle/api_keys/keys_list.tpl +++ b/templates/Sparkle/api_keys/keys_list.tpl @@ -16,6 +16,15 @@ + +
+
+
{$lng['admin']['warning']}
+
{$lng['usersettings']['api_allowed']['notice']}
+
+
+
+
@@ -26,10 +35,12 @@ {$searchcode} + + @@ -58,11 +69,13 @@ + + $footer