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)
|
u = yield self.store.get_user_by_id(user_id)
|
||||||
assert u is not None
|
assert u is not None
|
||||||
if u["user_type"] == UserTypes.SUPPORT or u["user_type"] == UserTypes.BOT:
|
if u["user_type"] in (UserTypes.SUPPORT, UserTypes.BOT):
|
||||||
# support users are not required to consent
|
# support and bot users are not required to consent
|
||||||
return
|
return
|
||||||
if u["appservice_id"] is not None:
|
if u["appservice_id"] is not None:
|
||||||
# users registered by an appservice are exempt
|
# users registered by an appservice are exempt
|
||||||
|
|
Loading…
Reference in New Issue