[pve-devel] applied: [PATCH docs 2/2] include allowtoken info in api-viewer

Thomas Lamprecht t.lamprecht at proxmox.com
Wed Feb 12 15:03:55 CET 2020


On 1/30/20 1:54 PM, Fabian Grünbichler wrote:
> Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
> ---
>  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 += "<br />This API endpoint is not available for API tokens."
> +		}
>  
>  		sections.push({
>  		    title: 'Required permissions',
> 

applied this one already, thanks!





More information about the pve-devel mailing list