fix for cross-civiversion hook functionality (changes to permission hook in diff versions)