added permission to the hook parameters to make it easier to check
Merge pull request #1125 from csalvador/formfile

added permission to the hook parameters to make it easier to check