NX-509: Client should check role too

As npm plugin uses non-standard role