Issue 3: Simplify and fix permission checks

https://github.com/ngsru/atlassian-external-hooks/issues/3