prevent conflict between update document and grant
Issue #126: send a more relevant error when the update user's json have missing values
Merge pull request #125 from swampie/master

prevent conflict between update document and grant