Apply user rights on sub-definition
Fix tests
Merge pull request #1130 from nlegoff/right-apis

[READY][3.8.6] Apply user rights on sub-definition