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:
parent
e7e8e6d5f7
commit
ecd55041a2
@ -74,6 +74,9 @@ use crate::config::acl::{
|
||||
},
|
||||
},
|
||||
},
|
||||
access: {
|
||||
permission: &Permission::Anybody,
|
||||
},
|
||||
)]
|
||||
/// List Datastore usages and estimates
|
||||
fn datastore_status(
|
||||
|
Loading…
Reference in New Issue
Block a user