mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-24 18:45:52 +03:00
better logging
This commit is contained in:
parent
537088e7dc
commit
bd769a81e1
1 changed files with 9 additions and 4 deletions
|
@ -217,10 +217,15 @@ class RoomMemberHandler(BaseHandler):
|
|||
requester.user,
|
||||
)
|
||||
if not is_requester_admin:
|
||||
if (
|
||||
self.hs.config.block_non_admin_invites or
|
||||
not self.spam_checker.user_may_invite(requester.user)
|
||||
):
|
||||
if self.hs.config.block_non_admin_invites:
|
||||
logger.debug(
|
||||
"Blocking invite: user is not admin and non-admin "
|
||||
"invites disabled"
|
||||
)
|
||||
block_invite = True
|
||||
|
||||
if not self.spam_checker.user_may_invite(requester.user):
|
||||
logger.debug("Blocking invite due to spam checker")
|
||||
block_invite = True
|
||||
|
||||
if block_invite:
|
||||
|
|
Loading…
Reference in a new issue