diff --git a/src/server/rest.rs b/src/server/rest.rs index feb0b462..4cfdd6c0 100644 --- a/src/server/rest.rs +++ b/src/server/rest.rs @@ -22,6 +22,7 @@ use proxmox::api::{ ApiHandler, ApiMethod, HttpError, + Permission, RpcEnvironment, RpcEnvironmentType, check_api_permission, @@ -546,13 +547,16 @@ pub async fn handle_request(api: Arc, req: Request) -> Result rpcenv.set_user(Some(userid.to_string())), @@ -565,7 +569,7 @@ pub async fn handle_request(api: Arc, req: Request) -> Result { let err = http_err!(NOT_FOUND, "Path '{}' not found.", path); return Ok((formatter.format_error)(err));