]> git.proxmox.com Git - pve-manager-legacy.git/commit
api: open up /cluster/options call over injecting info into /version
authorDominik Csapak <d.csapak@proxmox.com>
Wed, 16 Nov 2022 15:48:04 +0000 (16:48 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 17 Nov 2022 17:16:43 +0000 (18:16 +0100)
commitcfe24be17b1ed38e1966094e38939633fd8e52b5
treee85f8bb6426540fa8dfd88bd8d52f82f21dea7ef
parentb5c1fdc809495e5a348d9993e4fc63abeb7eca30
api: open up /cluster/options call over injecting info into /version

To avoid returning unrelated information in the /version api call in
the future use the API endpoint that'd return the relevant
information basically anyway.

It contains most ui relevant options, like the console preference and
tag-style so allow these for users without 'Sys.Audit' on '/', for
others its unchanged, they still get the whole datacenter config.

We also add the list of allowed tags, while not strictly a datacenter
config, it's derived from the current users privileges and the
datacenter config.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/API2.pm
PVE/API2/Cluster.pm