Issue 3: Simplify and fix permission checks

https://github.com/ngsru/atlassian-external-hooks/issues/3
Merge pull request #4 from charleso/bugfix/3-permission-checks

#3 Fix and simply permission checks