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