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