mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 09:56:05 -04:00
Refactor get_send_level to take a power_levels event
it makes it easier for me to reason about
This commit is contained in:
parent
c6b1441c52
commit
557b686eac
2 changed files with 39 additions and 8 deletions
|
@ -655,7 +655,7 @@ class Auth(object):
|
|||
auth_events[(EventTypes.PowerLevels, "")] = power_level_event
|
||||
|
||||
send_level = event_auth.get_send_level(
|
||||
EventTypes.Aliases, "", auth_events
|
||||
EventTypes.Aliases, "", power_level_event,
|
||||
)
|
||||
user_level = event_auth.get_user_power_level(user_id, auth_events)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue