From 48bd72763f0e27294fc1c5bcd93e1595a99779ef Mon Sep 17 00:00:00 2001 From: Shannon Sterz Date: Wed, 19 Jun 2024 11:54:16 +0200 Subject: [PATCH] access-control: increment user cache generation when saving acl config since `CachedUserInfo` takes care of both, the user config and the acl config, we need to also bump the cache generation when storing the acl config. Signed-off-by: Shannon Sterz --- proxmox-access-control/src/acl.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/proxmox-access-control/src/acl.rs b/proxmox-access-control/src/acl.rs index d0449d9a..5ff47e45 100644 --- a/proxmox-access-control/src/acl.rs +++ b/proxmox-access-control/src/acl.rs @@ -641,6 +641,9 @@ pub fn save_config(acl: &AclTree) -> Result<(), Error> { let conf = acl_config(); replace_privileged_config(conf, &raw)?; + // increase cache generation so we reload it next time we access it + access_conf().increment_cache_generation()?; + Ok(()) }