In UI users will be able to assign roles using annotations or button The sync server now has a hasRole directive. Basic usage is something like this : Depends on investigation for @Annotation based roles.
Once that is done roles should be available within mutation and reuse middleware that was build to check roles https://github . com/aerogear/data-sync-server/blob/master/server/lib/schemaDirectives/hasRole.js#L5-L18
|
|