Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,059 of 9,059 pages
About the help in other languages
All help pages

Policies of the migration module

The policy functions of the migration module (6) and their limitations.

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/examples/policies/migration.md

On this page

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' ) )}
    ...
{/if}

edit

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' ) )}
    ...
{/if}

read

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' ) )}
    ...
{/if}

remotes

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' ) )}
    ...
{/if}

rollback

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' ) )}
    ...
{/if}

run

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' ) )}
    ...
{/if}

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.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x