Fixed permission check
Merge branch 'master' of github.com:WoltLab/WCF