RpcEnvironment: add environment type enum RpcEnvironmentType

This commit is contained in:
Dietmar Maurer
2019-01-27 10:33:42 +01:00
parent e82dad9700
commit 162b979394
4 changed files with 28 additions and 3 deletions

View File

@ -397,7 +397,7 @@ pub fn handle_request(api: Arc<ApiConfig>, req: Request<Body>) -> BoxFut {
println!("REQUEST {} {}", method, path);
println!("COMPO {:?}", components);
let mut rpcenv = RestEnvironment::new();
let rpcenv = RestEnvironment::new(RpcEnvironmentType::PRIVILEDGED);
if comp_len >= 1 && components[0] == "api2" {
println!("GOT API REQUEST");