fix #2978: allow non-root to view datastore usage

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>
This commit is contained in:
Fabian Grünbichler 2020-09-03 14:49:22 +02:00 committed by Dietmar Maurer
parent e7e8e6d5f7
commit ecd55041a2

View File

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