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',