mixed smarty_block_securityutil_checkpermission_block(
array $params, string $content, &$smarty, object $smarty)
|
|
Smarty block to implement PN permissions checks in a template
available parameters:
- component the component under test
- instance the instance under test
- level the level of access required
Example <!--[securityutil_checkpermission_block component='News::' instance='1::' level=ACCESS_COMMENT]--> do some stuff now we have permission <!--[/securityutil_checkpermission_block]-->
Tags:
Parameters
| array |
$params |
All attributes passed to this function from the template |
| string |
$content |
The content between the block tags |
| object |
$smarty |
Reference to the Smarty object |
| |
&$smarty |
|