* [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
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.