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 <s.sterz@proxmox.com>
This commit is contained in:
Shannon Sterz 2024-06-19 11:54:16 +02:00 committed by Wolfgang Bumiller
parent 84537a02b1
commit 48bd72763f

View File

@ -641,6 +641,9 @@ pub fn save_config(acl: &AclTree) -> Result<(), Error> {
let conf = acl_config(); let conf = acl_config();
replace_privileged_config(conf, &raw)?; replace_privileged_config(conf, &raw)?;
// increase cache generation so we reload it next time we access it
access_conf().increment_cache_generation()?;
Ok(()) Ok(())
} }