From ecd55041a2dbfbd12b57d3017d2e1948b8283e7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= Date: Thu, 3 Sep 2020 14:49:22 +0200 Subject: [PATCH] fix #2978: allow non-root to view datastore usage MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/api2/status.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/api2/status.rs b/src/api2/status.rs index c44e73f1..10ae8b3d 100644 --- a/src/api2/status.rs +++ b/src/api2/status.rs @@ -74,6 +74,9 @@ use crate::config::acl::{ }, }, }, + access: { + permission: &Permission::Anybody, + }, )] /// List Datastore usages and estimates fn datastore_status(