better logging
parent
537088e7dc
commit
bd769a81e1
|
@ -217,10 +217,15 @@ class RoomMemberHandler(BaseHandler):
|
||||||
requester.user,
|
requester.user,
|
||||||
)
|
)
|
||||||
if not is_requester_admin:
|
if not is_requester_admin:
|
||||||
if (
|
if self.hs.config.block_non_admin_invites:
|
||||||
self.hs.config.block_non_admin_invites or
|
logger.debug(
|
||||||
not self.spam_checker.user_may_invite(requester.user)
|
"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
|
block_invite = True
|
||||||
|
|
||||||
if block_invite:
|
if block_invite:
|
||||||
|
|
Loading…
Reference in New Issue