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

exp:addanonymouspublicpolicies

Gibt der Rolle Anonymous die öffentlichen Richtlinien, die ihr fehlen: user/register, rss/feed, tags/view, die öffentlichen Views des Newsletters (Probelauf, außer mit --apply).

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/examples/commands/addanonymouspublicpolicies.md

On this page

This page is a translation. Read the English original

exp:addanonymouspublicpolicies

Gibt der Rolle Anonymous die öffentlichen Richtlinien, die ihr fehlen: user/register, rss/feed, tags/view, die öffentlichen Views des Newsletters (Probelauf, außer mit --apply).

Skript bin/php/addanonymouspublicpolicies.php, Code in kernel/private/classes/commands/addanonymouspublicpolicies.php. Führen Sie es im Wurzelverzeichnis der Installation aus, als der Benutzer, unter dem der Webserver läuft:

./console exp:addanonymouspublicpolicies --help
php bin/php/addanonymouspublicpolicies.php --help

Hilfetext

Was --help ausgibt, so wie der Befehl es schreibt:

Give the Anonymous role the policies a visitor who is not signed in needs on a public site and
it lacks: user/register (a new installation takes it out of PolicyOmitList[]), rss/feed, and where
the module exists tags/view (eztags) and newsletter subscribe, configure, unsubscribe and archive
(cjw_newsletter). A policy the role has in any form (also limited, or module/*) is left alone, so
the script can run again. Prints PASS or FAIL at the end.
Without --apply nothing is written: the script lists what it would add. --dry-run is still accepted
and means the same as no flag; --apply together with --dry-run is a usage error (exit 2).

Example: php bin/php/addanonymouspublicpolicies.php
         php bin/php/addanonymouspublicpolicies.php --apply
         php bin/php/addanonymouspublicpolicies.php --apply --only=user/register
         php bin/php/addanonymouspublicpolicies.php --apply --skip=user/register --role=Visitors

Optionen

OptionWertHilfe
--applyDie Änderungen schreiben (Standard ist ein Probelauf, der sie auflistet und nichts ändert)
--dry-runDer Standard, beibehalten für Skripte, die die Option übergeben: auflisten, was hinzugefügt würde, nichts ändern
--roleerforderlichDie zu ergänzende Rolle (ID oder Name); Standard Anonymous
--onlyerforderlichNur diese Richtlinie (Modul/Funktion), kann wiederholt werden
--skiperforderlichDiese Richtlinie nie (Modul/Funktion), kann wiederholt werden; z. B. hält --skip=user/register die Registrierung geschlossen

Aus den Optionsdefinitionen im Code gelesen (startup(), getOptions(), options() oder ezcConsoleOption). Jedes Skript nimmt außerdem die Standardoptionen des Skript-Frameworks (--help, --siteaccess, --debug, --quiet, --allow-root-user ...).

Siehe auch


Erzeugt von ./console exp:help:examples --language=ger-de aus bin/php/addanonymouspublicpolicies.php, kernel/private/classes/commands/addanonymouspublicpolicies.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