fix: unauthorized pdus will be responded to with FORBIDDEN

This commit is contained in:
Timo Kösters committed 2021-05-21 18:12:02 +02:00
1 parent 09157b2096
commit 989d843c40
3 files changed
+6 -12

No files matched your search

+1 -1
View File
@@ -1309,7 +1309,7 @@ impl Rooms {
if !auth_check {
return Err(Error::BadRequest(
ErrorKind::InvalidParam,
ErrorKind::Forbidden,
"Event is not authorized.",
));
}