Closed (won't fix)
Project:
File Access
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
15 Oct 2010 at 09:59 UTC
Updated:
25 Apr 2013 at 08:45 UTC
When checking acces file permission we should always allow the admin to download files.
Something like that :
135 function file_access_file_download($filepath) {
136 global $user;
137
138 // If user is admin
139 if($user->uid == 1) {
140 return;
141 }
Comments
Comment #1
mattman commentedI'm closing this one for now. If someone still needs this in the D6 version then please reopen and I'll put it in.
The D7 version does allow the admin to download provided they've got the Bypass access permissions on for nodes.