add check routine of user's privilege
remove legacy support code
Merge pull request #2 from ssut/dev

remove legacy support