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