]> git.proxmox.com Git - proxmox-backup.git/commitdiff
fix #2978: allow non-root to view datastore usage
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Thu, 3 Sep 2020 12:49:22 +0000 (14:49 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 4 Sep 2020 04:18:20 +0000 (06:18 +0200)
for datastores where the requesting user has read or write permissions,
since the API method itself filters by that already. this is the same
permission setting and filtering that the datastore list API endpoint
does.

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

index c44e73f12304b814b2cd8757962f854880908091..10ae8b3d9d33e0a9e71e316e3b891da403870e0b 100644 (file)
@@ -74,6 +74,9 @@ use crate::config::acl::{
             },
         },
     },
+    access: {
+        permission: &Permission::Anybody,
+    },
 )]
 /// List Datastore usages and estimates
 fn datastore_status(