Home > @uniformdev/mesh-sdk > hasRole
hasRole() function
Check if user has a role by both name and id
Signature:
Parameters
Parameter | Type | Description |
---|---|---|
role | string | |
user | UniformUser |
Returns:
boolean
Home > @uniformdev/mesh-sdk > hasRole
Check if user has a role by both name and id
Signature:
Parameter | Type | Description |
---|---|---|
role | string | |
user | UniformUser |
Returns:
boolean