]> git.proxmox.com Git - pve-docs.git/commitdiff
include allowtoken info in api-viewer
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Thu, 30 Jan 2020 12:54:01 +0000 (13:54 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 12 Feb 2020 13:12:53 +0000 (14:12 +0100)
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
api-viewer/PVEAPI.js

index 24161612dcf8780254d13c2a7bda32ff00fd990d..53bc36c4e105142a9b8d796204abb09e51579480 100644 (file)
@@ -354,6 +354,9 @@ Ext.onReady(function() {
                        permhtml += "Unknown systax!";
                    }
                }
+               if (!info.allowtoken) {
+                   permhtml += "<br />This API endpoint is not available for API tokens."
+               }
 
                sections.push({
                    title: 'Required permissions',