update permission check
Merge branch 'master' of https://github.com/iyottt/nbtc