Use filefield_view_access() also in hook_file_download(), so that
the same objective isn't coded twice. As a downside, doing it this way will not squeeze every last inch of CPU cycles out of this loop. Whatever.
parent
8f3b2a88
Please register or sign in to comment