Skip to content

Commit

Permalink
allow unauthorized protocols query
Browse files Browse the repository at this point in the history
  • Loading branch information
kayhhh committed Apr 5, 2024
1 parent 3545b6a commit a8d1ae7
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions crates/dwn/src/handlers/protocols/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ pub async fn handle_protocols_query(
) -> Result<MessageReply, HandleMessageError> {
let authorized = message.is_authorized(&target).await;

if !authorized {
return Err(HandleMessageError::Unauthorized);
}

let descriptor = match message.descriptor {
Descriptor::ProtocolsQuery(descriptor) => descriptor,
_ => {
Expand Down

0 comments on commit a8d1ae7

Please sign in to comment.