can_open
Available since Exponential 6.0.15 (in development, not in a release yet).
Summary
Whether the current user can open an address of this siteaccess ("setup/cache", "content/view/full/5", a URL alias), decided the way the kernel decides the request: the view's policy functions with their limitations, the siteaccess rules, the user/login SiteAccess limitation, and the node or object of a content view. fetch( 'user', 'can_open', hash( 'uri', 'setup/cache' ) ). See expViewAccess.
Usage
fetch( 'user', 'can_open',
hash( 'uri', uri ) )Parameters
| Name | Type | Required | Default |
|---|---|---|---|
| uri | string | Yes. |
Source
kernel/user/function_definition.php, eZUserFunctionCollection::canOpen()
See also
Generated example: fetch( 'user', 'can_open' )
Added to the reference for Exponential 6.0.15.
Contributors
- Graham Brookins Updated
Comments
Add a comment