MantisBT: master-2.24 90b83956

Author Committer Branch Timestamp Parent
dregad dregad master-2.24 2020-09-12 12:04 master-2.24 221cf323
Affected Issues  0027299: Remove code duplication in File API
Changeset

New file_can_view_or_download() function

file_can_view_bug_attachments() and file_can_download_bug_attachments()
have nearly identical code, the only difference being the names of the
configs.

Adding a new internal File API function to avoid code duplication.

Fixes 0027299

mod - core/file_api.php Diff File