check_acl_path: add /access/domains and /access/openid

This commit is contained in:
Dietmar Maurer 2021-06-21 10:59:43 +02:00
parent bbff6c4968
commit 0219ba2cc5
1 changed files with 7 additions and 1 deletions

View File

@ -283,11 +283,17 @@ pub fn check_acl_path(path: &str) -> Result<(), Error> {
return Ok(()); return Ok(());
} }
match components[1] { match components[1] {
"acl" | "users" => { "acl" | "users" | "domains" => {
if components_len == 2 { if components_len == 2 {
return Ok(()); return Ok(());
} }
} }
// /access/openid/{endpoint}
"openid" => {
if components_len <= 3 {
return Ok(());
}
}
_ => {} _ => {}
} }
} }