Policies of the contentfinder module
The policy functions of contentfinder and their limitations, from $FunctionList in kernel/contentfinder/module.php. In the administration they are chosen under Roles and policies; a policy on contentfinder/* grants every function.
delete
Checked by the views: action.
No limitations: the policy is all or nothing.
// Give a role the policy (eZRole::appendPolicy( $module, $function, $limitations ))
$role = eZRole::fetchByName( 'Editor' );
$role->appendPolicy( 'contentfinder', 'delete' );if fetch( 'user', 'has_access_to', hash( 'module', 'contentfinder', 'function', 'delete' ) )
...
/ifsearch
Checked by the views: action, search.
No limitations: the policy is all or nothing.
// Give a role the policy (eZRole::appendPolicy( $module, $function, $limitations ))
$role = eZRole::fetchByName( 'Editor' );
$role->appendPolicy( 'contentfinder', 'search' );if fetch( 'user', 'has_access_to', hash( 'module', 'contentfinder', 'function', 'search' ) )
...
/ifRelated
Generated by ./console exp:help:examples from kernel/contentfinder/module.php, kernel/classes/ezrole.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.