Needs work
Project:
Mime Mail
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
9 Nov 2016 at 10:50 UTC
Updated:
24 Apr 2020 at 20:06 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
ndf commentedComment #3
ndf commentedComment #4
ronino commentedI am looking for a way to attach private files to emails without setting the "send arbitrary files" permission.
If I am not mistaken, then with the patch the hook implementation called last will decide about access to the file no matter what other hook implementations set before.
The file module uses a different approach in file.module to determine whether a user can download a file which could also work here:
If any hook implementation grants access, then access is allowed.
Comment #5
tr commentedNeeds work, based on #4. Also needs tests. Tests are especially important when we start messing with permissions - we need some assurance that the code is doing exactly what we expect of it.