Skip to content
Snippets Groups Projects
Commit a292454a authored by Mark Haines's avatar Mark Haines Committed by GitHub
Browse files

Merge pull request #925 from matrix-org/markjh/auth_fix

Fix 500 ISE when sending alias event without a state_key
parents 4f81edbd d137e032
No related branches found
No related tags found
No related merge requests found
......@@ -121,6 +121,11 @@ class Auth(object):
# FIXME: Temp hack
if event.type == EventTypes.Aliases:
if not event.is_state():
raise AuthError(
403,
"Alias event must be a state event",
)
if not event.state_key:
raise AuthError(
403,
......
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