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:
@@ -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)?;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user