Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
attachments: Tighten type of validate_attachment_request_for_spectator_access.
Alex Vandiver0b0a7fa25119
diff --git a/zerver/lib/attachments.py b/zerver/lib/attachments.pyindex dadd400708d..57532b3990e 100644--- a/zerver/lib/attachments.py+++ b/zerver/lib/attachments.py@@ -50,9 +50,7 @@ def remove_attachment(user_profile: UserProfile, attachment: Attachment) -> Noneattachment.delete()-def validate_attachment_request_for_spectator_access(- realm: Realm, attachment: Attachment-) -> bool | None:+def validate_attachment_request_for_spectator_access(realm: Realm, attachment: Attachment) -> bool:if attachment.realm != realm:return False