Policies of the exphelp module
The policy functions of exphelp and their limitations, from $FunctionList in kernel/exphelp/module.php. In the administration they are chosen under Roles and policies; a policy on exphelp/* grants every function.
context
Checked by the views: context.
No limitations: the policy is all or nothing.
// Give a role the policy (eZRole::appendPolicy( $module, $function, $limitations ))
$role = eZRole::fetchByName( 'Editor' );
$role->appendPolicy( 'exphelp', 'context' );if fetch( 'user', 'has_access_to', hash( 'module', 'exphelp', 'function', 'context' ) )
...
/iffeedback
Checked by the views: feedback.
No limitations: the policy is all or nothing.
// Give a role the policy (eZRole::appendPolicy( $module, $function, $limitations ))
$role = eZRole::fetchByName( 'Editor' );
$role->appendPolicy( 'exphelp', 'feedback' );if fetch( 'user', 'has_access_to', hash( 'module', 'exphelp', 'function', 'feedback' ) )
...
/ifread
Checked by the views: asset, audience, contents, dashboard, extensions, feedback, image, manual, navigation, pdf, report, search, state, topic, viewer.
No limitations: the policy is all or nothing.
// Give a role the policy (eZRole::appendPolicy( $module, $function, $limitations ))
$role = eZRole::fetchByName( 'Editor' );
$role->appendPolicy( 'exphelp', 'read' );if fetch( 'user', 'has_access_to', hash( 'module', 'exphelp', 'function', 'read' ) )
...
/ifRelated
Generated by ./console exp:help:examples from kernel/exphelp/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.