mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-15 00:33:50 +01:00
Apply suggestions from code review
Co-Authored-By: Erik Johnston <erik@matrix.org>
This commit is contained in:
parent
4a2d2c2b6f
commit
c998f25006
1 changed files with 2 additions and 2 deletions
|
@ -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 a new issue