Skip to content

Commit

Permalink
Revert key_expr parsing change to reply ingress
Browse files Browse the repository at this point in the history
Ingress reply messages are not affected by the unimplemented key_expr in routing/dispatcher/queries.rs
  • Loading branch information
oteffahi committed Jul 24, 2024
1 parent 2ea951e commit 26f6ca5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions zenoh/src/net/routing/interceptor/access_control.rs
Original file line number Diff line number Diff line change
Expand Up @@ -244,10 +244,8 @@ impl InterceptorTrait for IngressAclEnforcer {
return None;
}
}
NetworkBody::Response(Response { wire_expr, .. }) => {
// @TODO: Remove wire_expr usage when issue #1255 is implemented
if self.action(AclMessage::Reply, "Reply (ingress)", wire_expr.as_str())
== Permission::Deny
NetworkBody::Response(Response { .. }) => {
if self.action(AclMessage::Reply, "Reply (ingress)", key_expr?) == Permission::Deny
{
return None;
}
Expand Down

0 comments on commit 26f6ca5

Please sign in to comment.