Fix permissions check
Merge branch 'master' of github.com:developius/bluecode-intranet