add new features to check permissions
Merge pull request #62 from aapetrov/master

add new features to check permissions