mirror of
https://github.com/zulip/zulip.git
synced 2025-11-12 18:06:44 +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()
|
attachment.delete()
|
||||||
|
|
||||||
|
|
||||||
def validate_attachment_request_for_spectator_access(
|
def validate_attachment_request_for_spectator_access(realm: Realm, attachment: Attachment) -> bool:
|
||||||
realm: Realm, attachment: Attachment
|
|
||||||
) -> bool | None:
|
|
||||||
if attachment.realm != realm:
|
if attachment.realm != realm:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user