Skip to content

Commit

Permalink
add hpr permission to get_devaddr_rages
Browse files Browse the repository at this point in the history
allow an hpr to retreive all parts of a route individually
  • Loading branch information
michaeldjeffrey committed Aug 1, 2023
1 parent 456b907 commit c76cb18
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions iot_config/src/route_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -594,8 +594,12 @@ impl iot_config::Route for RouteService {
telemetry::count_request("route", "get-devaddr-ranges");

let signer = verify_public_key(&request.signer)?;
self.verify_request_signature(&signer, &request, OrgId::RouteId(&request.route_id))
.await?;
self.verify_request_signature_or_stream(
&signer,
&request,
OrgId::RouteId(&request.route_id),
)
.await?;

let (tx, rx) = tokio::sync::mpsc::channel(20);
let pool = self.pool.clone();
Expand Down

0 comments on commit c76cb18

Please sign in to comment.