Added missing permission checks
Merge pull request #310 from stefk/perm-checks

Added missing permission checks