add permission controll
Merge pull request #80 from forumbyr/master

add permission controll