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

Richtlinien des Moduls migration

Die Richtlinienfunktionen des Moduls migration (6) und ihre Einschränkungen.

Download as PDF

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

On this page

This page is a translation. Read the English original

Richtlinien des Moduls migration

Die Richtlinienfunktionen von migration und ihre Einschränkungen, aus $FunctionList in kernel/migration/module.php. In der Administration werden sie unter Rollen und Richtlinien gewählt; eine Richtlinie auf migration/* erlaubt jede Funktion.

deploy

Keine Ansicht des Moduls nennt sie; Code prüft sie (eZUser::hasAccessTo( 'migration', 'deploy' ) oder der Fetch user/has_access_to).

Keine Einschränkungen: Die Richtlinie gilt ganz oder gar nicht.

// Einer Rolle die Richtlinie geben (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

Geprüft von den Ansichten: editor, recording.

Keine Einschränkungen: Die Richtlinie gilt ganz oder gar nicht.

// Einer Rolle die Richtlinie geben (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

Geprüft von den Ansichten: deploy, deployment, dryrun, history, log, remotes, status, stream.

Keine Einschränkungen: Die Richtlinie gilt ganz oder gar nicht.

// Einer Rolle die Richtlinie geben (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

Geprüft von den Ansichten: remote.

Keine Einschränkungen: Die Richtlinie gilt ganz oder gar nicht.

// Einer Rolle die Richtlinie geben (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

Geprüft von den Ansichten: rollback.

Keine Einschränkungen: Die Richtlinie gilt ganz oder gar nicht.

// Einer Rolle die Richtlinie geben (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

Geprüft von den Ansichten: run.

Keine Einschränkungen: Die Richtlinie gilt ganz oder gar nicht.

// Einer Rolle die Richtlinie geben (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}

Siehe auch


Erzeugt von ./console exp:help:examples --language=ger-de aus kernel/migration/module.php, kernel/classes/ezrole.php. Bearbeiten Sie diese Seite nicht: Ändern Sie die Quelle oder die deutsche Übersetzung und erzeugen Sie sie neu (wie). Freie Dokumentation: GFDL 1.3 oder später.

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