Allow selective access to attach private files

Created on 13 June 2025, about 1 month ago

Problem/Motivation

Follow on from 💬 invoice attachment is not include anymore in mail sent Active . The attachment access checking code blocks attaching any private file unless there is code to call setAccess(). Sites would prefer to allow selective access without writing code.

Proposed resolution

  1. Create an EmailAdjuster that allows access to a configurable directory within private://
  2. Allow attaching private files that the recipient would anyway have access to via HTTPS. It's a bit awkward to implement because there isn't an API - the code is tied into FileDownloadController.php. I guess we'd have to invoke hook_file_download().

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Active

Version

2.0

Component

Code

Created by

🇬🇧United Kingdom adamps

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024