mirror of
https://gitlab.com/famedly/conduit.git
synced 2024-12-27 12:04:30 +01:00
Print relevant room ID and ACL'd server in informational level
These are room ACLs, not server ACLs. Causes confusion where people think their Conduit homeserver was ACL'd. Print where these are coming from in informational level. Signed-off-by: girlbossceo <june@girlboss.ceo>
This commit is contained in:
parent
1f867a2c86
commit
a0148a9996
1 changed files with 5 additions and 1 deletions
|
@ -1526,9 +1526,13 @@ impl Service {
|
||||||
if acl_event_content.is_allowed(server_name) {
|
if acl_event_content.is_allowed(server_name) {
|
||||||
Ok(())
|
Ok(())
|
||||||
} else {
|
} else {
|
||||||
|
info!(
|
||||||
|
"Server {} was denied by room ACL in {}",
|
||||||
|
server_name, room_id
|
||||||
|
);
|
||||||
Err(Error::BadRequest(
|
Err(Error::BadRequest(
|
||||||
ErrorKind::Forbidden,
|
ErrorKind::Forbidden,
|
||||||
"Server was denied by ACL",
|
"Server was denied by room ACL",
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue