]> git.proxmox.com Git - proxmox-backup.git/commit - src/api2/admin/datastore.rs
api: filter snapshot counts
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Thu, 12 Nov 2020 10:30:32 +0000 (11:30 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 18 Nov 2020 10:05:50 +0000 (11:05 +0100)
commitfdfcb74d67d76d6e87d8033b5d4ccd4d5be6081d
tree724274efb9fac35bcac19177671d312922d1c434
parent98afc7b1528726a93c4cc00b221b13f5781bbcc0
api: filter snapshot counts

unprivileged users should only see the counts related to their part of
the datastore.

while we're at it, switch to a list groups, filter groups, count
snapshots approach (like list_snapshots) to speedup calls to this
endpoint when many unprivileged users share a datastore.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
src/api2/admin/datastore.rs
src/api2/types/mod.rs