mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-15 22:33:51 +01:00
Enable guest access on new media endpoints, per MSC4189 (#17675)
This commit is contained in:
parent
e06e3c4004
commit
a7fcac5648
2 changed files with 3 additions and 2 deletions
1
changelog.d/17675.feature
Normal file
1
changelog.d/17675.feature
Normal file
|
@ -0,0 +1 @@
|
|||
Guests can use the new media endpoints to download media, as described by [MSC4189](https://github.com/matrix-org/matrix-spec-proposals/pull/4189).
|
|
@ -138,7 +138,7 @@ class ThumbnailResource(RestServlet):
|
|||
) -> None:
|
||||
# Validate the server name, raising if invalid
|
||||
parse_and_validate_server_name(server_name)
|
||||
await self.auth.get_user_by_req(request)
|
||||
await self.auth.get_user_by_req(request, allow_guest=True)
|
||||
|
||||
set_cors_headers(request)
|
||||
set_corp_headers(request)
|
||||
|
@ -229,7 +229,7 @@ class DownloadResource(RestServlet):
|
|||
# Validate the server name, raising if invalid
|
||||
parse_and_validate_server_name(server_name)
|
||||
|
||||
await self.auth.get_user_by_req(request)
|
||||
await self.auth.get_user_by_req(request, allow_guest=True)
|
||||
|
||||
set_cors_headers(request)
|
||||
set_corp_headers(request)
|
||||
|
|
Loading…
Reference in a new issue