fix: Forbidden instead of InvalidParam when joining

next
Timo Kösters 2021-05-22 18:49:30 +02:00
parent 42c9ba2e5c
commit 90cd11d850
No known key found for this signature in database
GPG Key ID: 24DA7517711A2BA4
1 changed files with 1 additions and 1 deletions

View File

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