[pdm-devel] [PATCH datacenter-manager 1/8] server: api: subscription: fix permission check
Dominik Csapak
d.csapak at proxmox.com
Mon Dec 1 11:39:03 CET 2025
we have here a 'check_priv' that should return if the permission check
was successful. So instead of wrongly check for 'is_err', rather check
for 'is_ok'.
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
server/src/api/resources.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/server/src/api/resources.rs b/server/src/api/resources.rs
index 55056e1c..22871362 100644
--- a/server/src/api/resources.rs
+++ b/server/src/api/resources.rs
@@ -616,7 +616,7 @@ pub async fn get_subscription_status(
PRIV_RESOURCE_AUDIT,
false,
)
- .is_err()
+ .is_ok()
};
for (remote_name, remote) in remotes_config {
--
2.47.3
More information about the pdm-devel
mailing list