mirror of
https://github.com/element-hq/synapse
synced 2024-07-04 09:53:32 +00:00
Lint
This commit is contained in:
parent
a949455520
commit
c8aae9832c
|
@ -829,8 +829,7 @@ def _can_send_event(event: "EventBase", auth_events: StateMap["EventBase"]) -> b
|
|||
if hasattr(event, "state_key"):
|
||||
if event.state_key.startswith("@"):
|
||||
if event.state_key != event.user_id and (
|
||||
not use_msc3779
|
||||
or not event.state_key.startswith(event.user_id + "_")
|
||||
not use_msc3779 or not event.state_key.startswith(event.user_id + "_")
|
||||
):
|
||||
raise AuthError(403, "You are not allowed to set others state")
|
||||
|
||||
|
|
Loading…
Reference in a new issue