Policies of the secrets module
The policy functions of secrets and their limitations, from $FunctionList in kernel/secrets/module.php. In the administration they are chosen under Roles and policies; a policy on secrets/* grants every function.
manage
Checked by the views: list.
No limitations: the policy is all or nothing.
// Give a role the policy (eZRole::appendPolicy( $module, $function, $limitations ))
$role = eZRole::fetchByName( 'Editor' );
$role->appendPolicy( 'secrets', 'manage' );if fetch( 'user', 'has_access_to', hash( 'module', 'secrets', 'function', 'manage' ) )
...
/ifRelated
Generated by ./console exp:help:examples from kernel/secrets/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.