mirror of
https://gitlab.com/famedly/conduit.git
synced 2024-12-26 08:24:32 +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) {
|
||||
Ok(())
|
||||
} else {
|
||||
info!(
|
||||
"Server {} was denied by room ACL in {}",
|
||||
server_name, room_id
|
||||
);
|
||||
Err(Error::BadRequest(
|
||||
ErrorKind::Forbidden,
|
||||
"Server was denied by ACL",
|
||||
"Server was denied by room ACL",
|
||||
))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue