[pdm-devel] [PATCH datacenter-manager] api: subscription status: use correct resource ACL path in permission check

Lukas Wagner l.wagner at proxmox.com
Tue Nov 4 15:51:22 CET 2025


We use the singular 'resource' everywhere else.

Signed-off-by: Lukas Wagner <l.wagner at proxmox.com>
---
 server/src/api/resources.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/server/src/api/resources.rs b/server/src/api/resources.rs
index 81c9d9ae..e7d43987 100644
--- a/server/src/api/resources.rs
+++ b/server/src/api/resources.rs
@@ -530,14 +530,14 @@ pub async fn get_subscription_status(
     let auth_id = rpcenv.get_auth_id().unwrap().parse()?;
     let user_info = CachedUserInfo::new()?;
     let allow_all = user_info
-        .check_privs(&auth_id, &["resources"], PRIV_RESOURCE_AUDIT, false)
+        .check_privs(&auth_id, &["resource"], PRIV_RESOURCE_AUDIT, false)
         .is_ok();
 
     let check_priv = |remote_name: &str| -> bool {
         user_info
             .check_privs(
                 &auth_id,
-                &["resources", remote_name],
+                &["resource", remote_name],
                 PRIV_RESOURCE_AUDIT,
                 false,
             )
-- 
2.47.3





More information about the pdm-devel mailing list