Skip to content
Snippets Groups Projects
Unverified Commit c998f250 authored by Will Hunt's avatar Will Hunt Committed by GitHub
Browse files

Apply suggestions from code review


Co-Authored-By: default avatarErik Johnston <erik@matrix.org>
parent 4a2d2c2b
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment