mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-09-09 15:11:58 +00:00
Neaten things up a bit
This commit is contained in:
parent
46de65cab9
commit
8421cabb9d
@ -58,14 +58,13 @@ class Auth(object):
|
||||
# TODO (erikj): Auth for outliers is done differently.
|
||||
return True
|
||||
|
||||
is_state = hasattr(event, "state_key")
|
||||
|
||||
if event.type == RoomCreateEvent.TYPE:
|
||||
# FIXME
|
||||
return True
|
||||
|
||||
self._can_send_event(event)
|
||||
|
||||
if event.type == RoomMemberEvent.TYPE:
|
||||
self._can_send_event(event)
|
||||
allowed = self.is_membership_change_allowed(event)
|
||||
if allowed:
|
||||
logger.debug("Allowing! %s", event)
|
||||
@ -73,8 +72,6 @@ class Auth(object):
|
||||
logger.debug("Denying! %s", event)
|
||||
return allowed
|
||||
|
||||
self._can_send_event(event)
|
||||
|
||||
if event.type == RoomPowerLevelsEvent.TYPE:
|
||||
self._check_power_levels(event)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user