1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2025-09-25 22:29:45 +00:00

Can create admin account from API

This commit is contained in:
2021-05-15 09:59:34 +02:00
parent cbf8d9b100
commit e0b953ba01
6 changed files with 63 additions and 5 deletions

View File

@@ -230,6 +230,10 @@ fn process_simple_route(route: &Route, req: &mut HttpRequestHandler) -> RequestR
if route.need_login {
req.check_admin_access_token()?;
}
if let Some(role) = route.admin_role {
req.check_admin_has_role(role)?;
}
}
}