Policies of the datatable module
The policy functions of datatable and their limitations, from $FunctionList in kernel/datatable/module.php. In the administration they are chosen under Roles and policies; a policy on datatable/* grants every function.
connections
Checked by the views: connection, connections.
No limitations: the policy is all or nothing.
// Give a role the policy (eZRole::appendPolicy( $module, $function, $limitations ))
$role = eZRole::fetchByName( 'Editor' );
$role->appendPolicy( 'datatable', 'connections' );if fetch( 'user', 'has_access_to', hash( 'module', 'datatable', 'function', 'connections' ) )
...
/ifmanage
Checked by the views: schema.
No limitations: the policy is all or nothing.
// Give a role the policy (eZRole::appendPolicy( $module, $function, $limitations ))
$role = eZRole::fetchByName( 'Editor' );
$role->appendPolicy( 'datatable', 'manage' );if fetch( 'user', 'has_access_to', hash( 'module', 'datatable', 'function', 'manage' ) )
...
/ifread
Checked by the views: dashboard, rows, table.
No limitations: the policy is all or nothing.
// Give a role the policy (eZRole::appendPolicy( $module, $function, $limitations ))
$role = eZRole::fetchByName( 'Editor' );
$role->appendPolicy( 'datatable', 'read' );if fetch( 'user', 'has_access_to', hash( 'module', 'datatable', 'function', 'read' ) )
...
/ifsync
Checked by the views: conflicts, sync, syncs.
No limitations: the policy is all or nothing.
// Give a role the policy (eZRole::appendPolicy( $module, $function, $limitations ))
$role = eZRole::fetchByName( 'Editor' );
$role->appendPolicy( 'datatable', 'sync' );if fetch( 'user', 'has_access_to', hash( 'module', 'datatable', 'function', 'sync' ) )
...
/ifRelated
Generated by ./console exp:help:examples from kernel/datatable/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.