add user right validation
Merge pull request #64 from xduo/JERSEY_2

add user right validation