ez.no / exponential / documentation / reference / data fetching / user / user_role
fetch( 'user', 'user_role',
hash( 'user_id', user_id ) )
| Name | Type | Description | Required |
|---|---|---|---|
| user_id | integer | The user to fetch policies from | Yes. |
An array with policies
This will return an array with policy structures which define what functionality the user has access to.
The policy structure is an associative array with the following entries.
{section var=policy loop=fetch( 'user', 'user_role', hash( 'user_id', 42 ) )} {$policy.moduleName}, {$policy.functionName}, {$policy.limitation} {/section}
Comments