start ACL api

This commit is contained in:
Dietmar Maurer
2020-04-13 11:09:44 +02:00
parent a83eab3c4d
commit ed3e60ae69
5 changed files with 188 additions and 5 deletions

View File

@ -64,13 +64,13 @@ fn split_acl_path(path: &str) -> Vec<&str> {
}
pub struct AclTree {
root: AclTreeNode,
pub root: AclTreeNode,
}
struct AclTreeNode {
users: HashMap<String, HashMap<String, bool>>,
groups: HashMap<String, HashMap<String, bool>>,
children: BTreeMap<String, AclTreeNode>,
pub struct AclTreeNode {
pub users: HashMap<String, HashMap<String, bool>>,
pub groups: HashMap<String, HashMap<String, bool>>,
pub children: BTreeMap<String, AclTreeNode>,
}
impl AclTreeNode {