Added a function for setting special permissions to files in reports
module.