fix #2847: api: datastore: change backup owner

This adds an api method to change the owner of
a backup-group.

Signed-off-by: Dylan Whyte <d.whyte@proxmox.com>
This commit is contained in:
Dylan Whyte
2020-10-13 10:58:40 +02:00
committed by Dietmar Maurer
parent fdc00811ce
commit 72be0eb189
2 changed files with 50 additions and 2 deletions

View File

@ -96,9 +96,7 @@ impl CachedUserInfo {
}
Ok(())
}
}
impl CachedUserInfo {
pub fn is_superuser(&self, userid: &Userid) -> bool {
userid == "root@pam"
}