Policies of the migration module
The policy functions of migration and their limitations, from $FunctionList in kernel/migration/module.php. In the administration they are chosen under Roles and policies; a policy on migration/* grants every function.
deploy
No view of the module names it; code checks it (eZUser::hasAccessTo( 'migration', 'deploy' ) 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( 'migration', 'deploy' );if fetch( 'user', 'has_access_to', hash( 'module', 'migration', 'function', 'deploy' ) )
...
/ifedit
Checked by the views: editor, recording.
No limitations: the policy is all or nothing.
// Give a role the policy (eZRole::appendPolicy( $module, $function, $limitations ))
$role = eZRole::fetchByName( 'Editor' );
$role->appendPolicy( 'migration', 'edit' );if fetch( 'user', 'has_access_to', hash( 'module', 'migration', 'function', 'edit' ) )
...
/ifread
Checked by the views: deploy, deployment, dryrun, history, log, remotes, status, stream.
No limitations: the policy is all or nothing.
// Give a role the policy (eZRole::appendPolicy( $module, $function, $limitations ))
$role = eZRole::fetchByName( 'Editor' );
$role->appendPolicy( 'migration', 'read' );if fetch( 'user', 'has_access_to', hash( 'module', 'migration', 'function', 'read' ) )
...
/ifremotes
Checked by the views: remote.
No limitations: the policy is all or nothing.
// Give a role the policy (eZRole::appendPolicy( $module, $function, $limitations ))
$role = eZRole::fetchByName( 'Editor' );
$role->appendPolicy( 'migration', 'remotes' );if fetch( 'user', 'has_access_to', hash( 'module', 'migration', 'function', 'remotes' ) )
...
/ifrollback
Checked by the views: rollback.
No limitations: the policy is all or nothing.
// Give a role the policy (eZRole::appendPolicy( $module, $function, $limitations ))
$role = eZRole::fetchByName( 'Editor' );
$role->appendPolicy( 'migration', 'rollback' );if fetch( 'user', 'has_access_to', hash( 'module', 'migration', 'function', 'rollback' ) )
...
/ifrun
Checked by the views: run.
No limitations: the policy is all or nothing.
// Give a role the policy (eZRole::appendPolicy( $module, $function, $limitations ))
$role = eZRole::fetchByName( 'Editor' );
$role->appendPolicy( 'migration', 'run' );if fetch( 'user', 'has_access_to', hash( 'module', 'migration', 'function', 'run' ) )
...
/ifRelated
Generated by ./console exp:help:examples from kernel/migration/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.