Voting starts in March for the Drupal Association Board election.
One of the biggest challenges of the File entity module is providing a more fine-grained access control API for different actions like viewing, downloading, editing, etc. Currently, Drupal core only provides one access API via hook_file_download() which is not compatible with the File entity access API because it assumes that the file is not an entity. This hook is even more fun because it has two purposes: check access to download a file, and return all the headers that should be sent if the file can be downloaded. In addition, this hook is very limited; you cannot check if another user has access to download a file, you can only check if the current user has access.
Extend EntityAccessController for use with file entities.
- Make a new hook to replace the 'Provide download headers for this file' functionality of hook_file_download()
User interface changes
Will need a change notice for hook_file_download().
PASSED: [[SimpleTest]]: [PHP 5.4 MySQL] 87,989 pass(es). View
PASSED: [[SimpleTest]]: [PHP 5.4 MySQL] 87,993 pass(es). View
PASSED: [[SimpleTest]]: [PHP 5.4 MySQL] 87,924 pass(es). View