mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
attachments: Tighten type of validate_attachment_request_for_spectator_access.
This commit is contained in:
committed by
Tim Abbott
parent
ca72e756eb
commit
0b0a7fa251
@@ -50,9 +50,7 @@ def remove_attachment(user_profile: UserProfile, attachment: Attachment) -> None
|
||||
attachment.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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user