fix: unauthorized pdus will be responded to with FORBIDDEN
This commit is contained in:
@@ -1309,7 +1309,7 @@ impl Rooms {
|
||||
|
||||
if !auth_check {
|
||||
return Err(Error::BadRequest(
|
||||
ErrorKind::InvalidParam,
|
||||
ErrorKind::Forbidden,
|
||||
"Event is not authorized.",
|
||||
));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user