[pdm-devel] [PATCH proxmox 2/2] access-control: make `all-for-authid` work with tokens
Shannon Sterz
s.sterz at proxmox.com
Wed Nov 19 12:15:19 CET 2025
previously specifying the `all-for-authid` parameter with the current
authid being a token, would return an empty list in any case. return
the acl's of the token properly instead.
Signed-off-by: Shannon Sterz <s.sterz at proxmox.com>
---
proxmox-access-control/src/api/acl.rs | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/proxmox-access-control/src/api/acl.rs b/proxmox-access-control/src/api/acl.rs
index dfd13fd4..c8f046d2 100644
--- a/proxmox-access-control/src/api/acl.rs
+++ b/proxmox-access-control/src/api/acl.rs
@@ -269,10 +269,12 @@ fn extract_acl_node_data(
exact: bool,
auth_id_filter: &Option<Authid>,
) -> Vec<AclListItem> {
- // tokens can't have tokens, so we can early return
- if let Some(auth_id_filter) = auth_id_filter {
- if auth_id_filter.is_token() {
- return Vec::new();
+ if !all_for_authid {
+ // tokens can't have tokens, so we can early return
+ if let Some(auth_id_filter) = auth_id_filter {
+ if auth_id_filter.is_token() {
+ return Vec::new();
+ }
}
}
--
2.47.3
More information about the pdm-devel
mailing list