From 78f5fcdc7032f2800ecad948de7414cc4c26b360 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= Date: Thu, 30 Jan 2020 13:54:01 +0100 Subject: [PATCH] include allowtoken info in api-viewer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fabian Grünbichler --- api-viewer/PVEAPI.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api-viewer/PVEAPI.js b/api-viewer/PVEAPI.js index 2416161..53bc36c 100644 --- a/api-viewer/PVEAPI.js +++ b/api-viewer/PVEAPI.js @@ -354,6 +354,9 @@ Ext.onReady(function() { permhtml += "Unknown systax!"; } } + if (!info.allowtoken) { + permhtml += "
This API endpoint is not available for API tokens." + } sections.push({ title: 'Required permissions',