mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-09-09 14:12:05 +00:00
Apply suggestions from code review
Co-Authored-By: Erik Johnston <erik@matrix.org>
This commit is contained in:
parent
4a2d2c2b6f
commit
c998f25006
@ -469,8 +469,8 @@ class EventCreationHandler(object):
|
||||
|
||||
u = yield self.store.get_user_by_id(user_id)
|
||||
assert u is not None
|
||||
if u["user_type"] == UserTypes.SUPPORT or u["user_type"] == UserTypes.BOT:
|
||||
# support users are not required to consent
|
||||
if u["user_type"] in (UserTypes.SUPPORT, UserTypes.BOT):
|
||||
# support and bot users are not required to consent
|
||||
return
|
||||
if u["appservice_id"] is not None:
|
||||
# users registered by an appservice are exempt
|
||||
|
Loading…
Reference in New Issue
Block a user