update
This commit is contained in:
@@ -15,7 +15,6 @@ class AttachmentPreviewController(http.Controller):
|
||||
|
||||
attachment_sudo = request.env["ir.attachment"].sudo().browse(attachment_id)
|
||||
_logger.debug(f"✅ Guest env applied {attachment_sudo}")
|
||||
attachment_sudo.public = True
|
||||
|
||||
if not attachment_sudo.exists():
|
||||
raise NotFound()
|
||||
|
||||
Reference in New Issue
Block a user