Browse Source

fix: Forbidden instead of InvalidParam when joining

merge-requests/84/head
Timo Kösters 5 years ago
parent
commit
90cd11d850
No known key found for this signature in database
GPG Key ID: 24DA7517711A2BA4
  1. 2
      src/client_server/membership.rs

2
src/client_server/membership.rs

@ -839,7 +839,7 @@ pub async fn invite_helper(
if !auth_check { if !auth_check {
return Err(Error::BadRequest( return Err(Error::BadRequest(
ErrorKind::InvalidParam, ErrorKind::Forbidden,
"Event is not authorized.", "Event is not authorized.",
)); ));
} }

Loading…
Cancel
Save