mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-11-19 10:40:36 -05:00
The attachments patch skipped the login redirect for share-link holders but left Redmine's read_authorize, find_container and find_downloadable_attachments in place, which deny the anonymous user. It relied on an Attachment#visible? patch that never existed, so every file on a shared issue sent the customer to the login page. Those checks now pass when the session holds an active share token for the file's issue (show, download, thumbnail, Download all), and defer to Redmine otherwise. Files on private notes stay hidden, matching the share page. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>