Policies of the staticpublish module
The policy functions of staticpublish and their limitations, from $FunctionList in kernel/staticpublish/module.php. In the administration they are chosen under Roles and policies; a policy on staticpublish/* grants every function.
build
Checked by the views: build.
| Limitation | Values come from |
|---|---|
| Target | expStaticAdmin::limitationList() |
// Give a role the policy (eZRole::appendPolicy( $module, $function, $limitations ))
$role = eZRole::fetchByName( 'Editor' );
$role->appendPolicy( 'staticpublish', 'build', array( 'Target' => array( /* values */ ) ) );if fetch( 'user', 'has_access_to', hash( 'module', 'staticpublish', 'function', 'build' ) )
...
/ifpublish
No view of the module names it; code checks it (eZUser::hasAccessTo( 'staticpublish', 'publish' ) or the user/has_access_to fetch).
| Limitation | Values come from |
|---|---|
| Target | expStaticAdmin::limitationList() |
// Give a role the policy (eZRole::appendPolicy( $module, $function, $limitations ))
$role = eZRole::fetchByName( 'Editor' );
$role->appendPolicy( 'staticpublish', 'publish', array( 'Target' => array( /* values */ ) ) );if fetch( 'user', 'has_access_to', hash( 'module', 'staticpublish', 'function', 'publish' ) )
...
/ifread
Checked by the views: dashboard, history, log, preview, serve, stream.
| Limitation | Values come from |
|---|---|
| Target | expStaticAdmin::limitationList() |
// Give a role the policy (eZRole::appendPolicy( $module, $function, $limitations ))
$role = eZRole::fetchByName( 'Editor' );
$role->appendPolicy( 'staticpublish', 'read', array( 'Target' => array( /* values */ ) ) );if fetch( 'user', 'has_access_to', hash( 'module', 'staticpublish', 'function', 'read' ) )
...
/ifsetup
Checked by the views: keys, target.
| Limitation | Values come from |
|---|---|
| Target | expStaticAdmin::limitationList() |
// Give a role the policy (eZRole::appendPolicy( $module, $function, $limitations ))
$role = eZRole::fetchByName( 'Editor' );
$role->appendPolicy( 'staticpublish', 'setup', array( 'Target' => array( /* values */ ) ) );if fetch( 'user', 'has_access_to', hash( 'module', 'staticpublish', 'function', 'setup' ) )
...
/ifRelated
Generated by ./console exp:help:examples from kernel/staticpublish/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.