refactor: check if federation is disabled inside the authcheck where possible
This commit is contained in:
@@ -149,6 +149,10 @@ where
|
||||
}
|
||||
}
|
||||
AuthScheme::ServerSignatures => {
|
||||
if !services().globals.allow_federation() {
|
||||
return Err(Error::bad_config("Federation is disabled."));
|
||||
}
|
||||
|
||||
let TypedHeader(Authorization(x_matrix)) = parts
|
||||
.extract::<TypedHeader<Authorization<XMatrix>>>()
|
||||
.await
|
||||
|
||||
Reference in New Issue
Block a user