mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-03 13:04:51 -04:00
Fix 500 ISE when sending alias event without a state_key
This commit is contained in:
parent
a2d288c6a9
commit
d137e03231
1 changed files with 5 additions and 0 deletions
|
@ -121,6 +121,11 @@ class Auth(object):
|
||||||
|
|
||||||
# FIXME: Temp hack
|
# FIXME: Temp hack
|
||||||
if event.type == EventTypes.Aliases:
|
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:
|
if not event.state_key:
|
||||||
raise AuthError(
|
raise AuthError(
|
||||||
403,
|
403,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue