add filters to downloadable file permission function