[pbs-devel] [PATCH proxmox v3 5/7] access: increment user cache generation when saving acl config
Shannon Sterz
s.sterz at proxmox.com
Wed Jun 19 11:54:16 CEST 2024
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 <s.sterz at proxmox.com>
---
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(())
}
--
2.39.2
More information about the pbs-devel
mailing list