Policies of the ezoe module
The policy functions of ezoe and their limitations, from $FunctionList in extension/ezoe/modules/ezoe/module.php. In the administration they are chosen under Roles and policies; a policy on ezoe/* grants every function.
browse
No view of the module names it; code checks it (eZUser::hasAccessTo( 'ezoe', 'browse' ) 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( 'ezoe', 'browse' );if fetch( 'user', 'has_access_to', hash( 'module', 'ezoe', 'function', 'browse' ) )
...
/ifdisable_editor
No view of the module names it; code checks it (eZUser::hasAccessTo( 'ezoe', 'disable_editor' ) 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( 'ezoe', 'disable_editor' );if fetch( 'user', 'has_access_to', hash( 'module', 'ezoe', 'function', 'disable_editor' ) )
...
/ifeditor
Checked by the views: dialog, embed_view, engine, load, relations, spellcheck_rpc, tags, upload.
No limitations: the policy is all or nothing.
// Give a role the policy (eZRole::appendPolicy( $module, $function, $limitations ))
$role = eZRole::fetchByName( 'Editor' );
$role->appendPolicy( 'ezoe', 'editor' );if fetch( 'user', 'has_access_to', hash( 'module', 'ezoe', 'function', 'editor' ) )
...
/ifrelations
No view of the module names it; code checks it (eZUser::hasAccessTo( 'ezoe', 'relations' ) 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( 'ezoe', 'relations' );if fetch( 'user', 'has_access_to', hash( 'module', 'ezoe', 'function', 'relations' ) )
...
/ifsearch
No view of the module names it; code checks it (eZUser::hasAccessTo( 'ezoe', 'search' ) 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( 'ezoe', 'search' );if fetch( 'user', 'has_access_to', hash( 'module', 'ezoe', 'function', 'search' ) )
...
/ifRelated
Generated by ./console exp:help:examples from extension/ezoe/modules/ezoe/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.