ez.no / exponential / documentation / reference / data fetching / user / member_of
fetch( 'user', 'member_of',
hash( 'id', user_id ) )
| Name | Type | Description | Required |
|---|---|---|---|
| id | integer | The user ID to fetch roles from | Yes. |
An array with role objects
This will return an array with role objects which are related to the user.
User is controlled by these roles: {section var=role loop=fetch( 'user', 'member_of', hash( 'id', 42 ) )} {role.name} {/section}
Comments