all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [pdm-devel] [PATCH datacenter-manager] api: subscription status: use correct resource ACL path in permission check
@ 2025-11-04 14:51 Lukas Wagner
  2025-11-04 18:12 ` [pdm-devel] applied: " Thomas Lamprecht
  0 siblings, 1 reply; 2+ messages in thread
From: Lukas Wagner @ 2025-11-04 14:51 UTC (permalink / raw)
  To: pdm-devel

We use the singular 'resource' everywhere else.

Signed-off-by: Lukas Wagner <l.wagner@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



_______________________________________________
pdm-devel mailing list
pdm-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pdm-devel


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [pdm-devel] applied: [PATCH datacenter-manager] api: subscription status: use correct resource ACL path in permission check
  2025-11-04 14:51 [pdm-devel] [PATCH datacenter-manager] api: subscription status: use correct resource ACL path in permission check Lukas Wagner
@ 2025-11-04 18:12 ` Thomas Lamprecht
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Lamprecht @ 2025-11-04 18:12 UTC (permalink / raw)
  To: pdm-devel, Lukas Wagner

On Tue, 04 Nov 2025 15:51:22 +0100, Lukas Wagner wrote:
> We use the singular 'resource' everywhere else.
> 
> 

Applied, thanks!

[1/1] api: subscription status: use correct resource ACL path in permission check
      commit: 51e08d026d7e225e4ca44ab8658b5bce4050c00e


_______________________________________________
pdm-devel mailing list
pdm-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pdm-devel


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-11-04 18:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-11-04 14:51 [pdm-devel] [PATCH datacenter-manager] api: subscription status: use correct resource ACL path in permission check Lukas Wagner
2025-11-04 18:12 ` [pdm-devel] applied: " Thomas Lamprecht

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal