check_acl_path: add /access/domains and /access/openid
This commit is contained in:
parent
bbff6c4968
commit
0219ba2cc5
|
@ -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(());
|
||||||
|
}
|
||||||
|
}
|
||||||
_ => {}
|
_ => {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue