mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04:00
Merge remote-tracking branch 'upstream/release-v1.35'
This commit is contained in:
commit
9de9e7454f
@ -1,3 +1,12 @@
|
|||||||
|
Synapse 1.35.1 (2021-06-03)
|
||||||
|
===========================
|
||||||
|
|
||||||
|
Bugfixes
|
||||||
|
--------
|
||||||
|
|
||||||
|
- Fix a bug introduced in v1.35.0 where invite-only rooms would be shown to all users in a space, regardless of if the user had access to it. ([\#10109](https://github.com/matrix-org/synapse/issues/10109))
|
||||||
|
|
||||||
|
|
||||||
Synapse 1.35.0 (2021-06-01)
|
Synapse 1.35.0 (2021-06-01)
|
||||||
===========================
|
===========================
|
||||||
|
|
||||||
|
6
debian/changelog
vendored
6
debian/changelog
vendored
@ -1,3 +1,9 @@
|
|||||||
|
matrix-synapse-py3 (1.35.1) stable; urgency=medium
|
||||||
|
|
||||||
|
* New synapse release 1.35.1.
|
||||||
|
|
||||||
|
-- Synapse Packaging team <packages@matrix.org> Thu, 03 Jun 2021 08:11:29 -0400
|
||||||
|
|
||||||
matrix-synapse-py3 (1.35.0) stable; urgency=medium
|
matrix-synapse-py3 (1.35.0) stable; urgency=medium
|
||||||
|
|
||||||
* New synapse release 1.35.0.
|
* New synapse release 1.35.0.
|
||||||
|
@ -47,7 +47,7 @@ try:
|
|||||||
except ImportError:
|
except ImportError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
__version__ = "1.35.0"
|
__version__ = "1.35.1"
|
||||||
|
|
||||||
if bool(os.environ.get("SYNAPSE_TEST_PATCH_LOG_CONTEXTS", False)):
|
if bool(os.environ.get("SYNAPSE_TEST_PATCH_LOG_CONTEXTS", False)):
|
||||||
# We import here so that we don't have to install a bunch of deps when
|
# We import here so that we don't have to install a bunch of deps when
|
||||||
|
@ -26,7 +26,6 @@ from synapse.api.constants import (
|
|||||||
HistoryVisibility,
|
HistoryVisibility,
|
||||||
Membership,
|
Membership,
|
||||||
)
|
)
|
||||||
from synapse.api.errors import AuthError
|
|
||||||
from synapse.events import EventBase
|
from synapse.events import EventBase
|
||||||
from synapse.events.utils import format_event_for_client_v2
|
from synapse.events.utils import format_event_for_client_v2
|
||||||
from synapse.types import JsonDict
|
from synapse.types import JsonDict
|
||||||
@ -456,16 +455,16 @@ class SpaceSummaryHandler:
|
|||||||
return True
|
return True
|
||||||
|
|
||||||
# Otherwise, check if they should be allowed access via membership in a space.
|
# Otherwise, check if they should be allowed access via membership in a space.
|
||||||
try:
|
if self._event_auth_handler.has_restricted_join_rules(
|
||||||
await self._event_auth_handler.check_restricted_join_rules(
|
state_ids, room_version
|
||||||
state_ids, room_version, requester, member_event
|
):
|
||||||
|
allowed_spaces = (
|
||||||
|
await self._event_auth_handler.get_spaces_that_allow_join(state_ids)
|
||||||
)
|
)
|
||||||
except AuthError:
|
if await self._event_auth_handler.is_user_in_rooms(
|
||||||
# The user doesn't have access due to spaces, but might have access
|
allowed_spaces, requester
|
||||||
# another way. Keep trying.
|
):
|
||||||
pass
|
return True
|
||||||
else:
|
|
||||||
return True
|
|
||||||
|
|
||||||
# If this is a request over federation, check if the host is in the room or
|
# If this is a request over federation, check if the host is in the room or
|
||||||
# is in one of the spaces specified via the join rules.
|
# is in one of the spaces specified via the join rules.
|
||||||
|
Loading…
Reference in New Issue
Block a user