restrict access to attached files for restricted entities #287
fix log message bug
Merge pull request #288 from hmslincs/attached_file_restriction

Attached file restriction