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

Richtlinien des Moduls apikey

Die Richtlinienfunktionen des Moduls apikey (1) und ihre Einschränkungen.

Download as PDF

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

On this page

This page is a translation. Read the English original

Richtlinien des Moduls apikey

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

create

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

EinschränkungWerte stammen aus
Scopefest: Read content (read), Create and publish content (publish), Edit content (edit), Remove content (remove), Read context help (help), Read content through GraphQL (graphql:read), Change content through GraphQL (graphql:write), Read the state of the migrations (migration:read)
// Einer Rolle die Richtlinie geben (eZRole::appendPolicy( $module, $function, $limitations ))
$role = eZRole::fetchByName( 'Editor' );
$role->appendPolicy( 'apikey', 'create', array( 'Scope' => array( /* values */ ) ) );
{if fetch( 'user', 'has_access_to', hash( 'module', 'apikey', 'function', 'create' ) )}
    ...
{/if}

Siehe auch


Erzeugt von ./console exp:help:examples --language=ger-de aus kernel/apikey/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