We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fa8d5ed commit 538f463Copy full SHA for 538f463
synapse/media/media_repository.py
@@ -367,7 +367,11 @@ async def is_media_visible(
367
raise NotFoundError()
368
369
# Which means a bypass was requested
370
- if not redacted_media_bypass_config.is_admin:
+ if redacted_media_bypass_config.is_admin:
371
+ # System admins get to bypass the rest of the checks
372
+ return
373
+ else:
374
+ # Not an admin, let's check they have a high enough power level.
375
# Lifted this directly from RoomEventServlet for msc2815
376
auth_events = (
377
await self._storage_controllers.state.get_current_state(
0 commit comments