From c20699493a3953306faeac0dc9981c20d56cc296 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Thu, 11 Nov 2021 21:00:08 +0100 Subject: [PATCH] api: cluster: add jobs sub-directory index and set its permissions Signed-off-by: Thomas Lamprecht --- PVE/API2/Cluster.pm | 1 + PVE/API2/Cluster/Jobs.pm | 1 + 2 files changed, 2 insertions(+) diff --git a/PVE/API2/Cluster.pm b/PVE/API2/Cluster.pm index a60f5231..227c6814 100644 --- a/PVE/API2/Cluster.pm +++ b/PVE/API2/Cluster.pm @@ -137,6 +137,7 @@ __PACKAGE__->register_method ({ { name => 'config' }, { name => 'firewall' }, { name => 'ha' }, + { name => 'jobs' }, { name => 'log' }, { name => 'metrics' }, { name => 'nextid' }, diff --git a/PVE/API2/Cluster/Jobs.pm b/PVE/API2/Cluster/Jobs.pm index 263b9d62..2699442a 100644 --- a/PVE/API2/Cluster/Jobs.pm +++ b/PVE/API2/Cluster/Jobs.pm @@ -13,6 +13,7 @@ __PACKAGE__->register_method({ path => '', method => 'GET', description => "Index for jobs related endpoints.", + permissions => { user => 'all' }, parameters => { additionalProperties => 0, properties => {},