forked from Proxmox/proxmox
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:
parent
84537a02b1
commit
48bd72763f
@ -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(())
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user