Manual:User rights/de

Benutzerrechte sind bestimmte Zugriffs- und Fähigkeitsberechtigungen, die anpassbaren Benutzergruppen zugeordnet werden können. Gruppen können dann auf (oder entfernt von) Benutzern durch die Spezial:Benutzerrechte Spezialseite zugeordnet werden. Siehe Hilfe:Berechtigungen zuordnen

Der Zugang zu dieser Schnittstelle ist selbst durch das 'Benutzerrechte' Recht geregelt, so dass nur Benutzer der Gruppe "Bürokrat" es tun können (in einem Standard-Setup). Siehe Handbuch:Benutzergruppen in MediaWiki einstellen für Informationen über die Verwaltung und die Zuordnung von Benutzergruppen.

Diese Spezial:Benutzerrechte Schnittstelle wurde in MediaWiki 1.5 eingeführt; siehe Handbuch: Benutzerrechte (ältere Versionen) für frühere Methoden.

Gruppenberechtigungen ändern
Eine Standardinstallation ordnet bestimmte Rechte zu Standardgruppen zu (siehe unten). Sie können die Standardrechte ändern, indem Sie das in  mit der Syntax   bearbeiten.

In a default installation $wgGroupPermissions will be set in, but it is not present in. Bei einer Standardinstallation ist $wgGroupPermissions nicht vorhanden und Sie müssen es in der Datei einfügen

Hat ein Mitglied mehrere Gruppen, bekommen sie die höchste Berechtigung einer Gruppe. Alle Benutzer, einschließlich der anonymen Benutzer, sind in der -Gruppe; alle registrierten Benutzer sind in der  -Gruppe. Zusätzlich zu den Standardgruppen können Sie beliebig neue Gruppen erstellen mit dem gleichen Array.

Beispiele
Dieses Beispiel deaktiviert die Anzeige von allen Seiten die nicht in $wgWhitelistRead aufgeführt werden, dann wieder nur für registrierte Benutzer aktiviert:

Dieses Beispiel deaktiviert Bearbeitung aller Seiten, dann wieder nur für registrierte Benutzer mit bestätigter E-Mail-Adresse aktiviert:

Creating a new group and assigning permissions to it
You can create new user groups by defining permissions for the according group name in  where  is the actual name of the group.

Additionally to assigning permissions, you should create these three wiki pages with fitting content:


 * (content: )
 * (content: )
 * (content: )

By default, bureaucrats can add users to, or remove them from, any group. However, if you are using and, you may need to customize those instead.

Examples
This example will create an arbitrary "ninja" group that can block users and delete pages, and whose edits are hidden by default in the recent changes log:


 * Note: the group name cannot contain spaces, so use  or   instead of

In this example, you would probably also want to create these pages:


 * (content: )
 * (content: )
 * (content: )

This will ensure that the group will be referred to as "Ninjas" throughout the interface, and a member will be referred to as a "ninja", and overviews will link the group name to.

This example disables write access (page editing and creation) by default, creates a group named "Write", and grants it write access. Users can be manually added to this group via Special:UserRights:

In this example, you would probably also want to create these pages:
 * (content: )
 * (content: )
 * (content: )

Removing predefined groups
MediaWiki out of the box comes with a number of predefined groups. These groups can be removed by unsetting the according array keys, among them. For details see below.

Example
This example will eliminate the bureaucrat group entirely. It is necessary to ensure that all six of these variables are unset for any group that one wishes to remove from being listed at Special:ListGroupRights; however, merely unsetting $wgGroupPermissions will suffice to remove it from Special:UserRights. This code should be placed after any  lines that add extensions such as  containing code that gives bureaucrats group permissions by default.

List of permissions
The following user rights are available in the latest version of MediaWiki. If you are using an older version, look at "Special:Version" on your wiki and see if your version is covered in the "versions" column.

Although these permissions all control separate things, sometimes to perform certain actions you need multiple permissions. For example allowing people to edit but not read pages doesn't make sense, since in order to edit a page you must first be able to read it (Assuming no pages are whitelisted). Allowing uploads but not editing does not make sense since in order to upload an image you must implicitly create an image description page, etc.

List of groups
The following groups are available in the latest version of MediaWiki. If you are using an older version then some of these may not be implemented.

From MW 1.12, you can create your own groups into which users are automatically promoted (as with autoconfirmed and emailconfirmed) using. You can even create any custom group by just assigning rights to them.

Default rights
The default rights are defined in.
 * Default values in HEAD version:
 * The default values in the latest stable MediaWiki release, version 1.25, are available here.
 * Additional rights: you should be able to list all the permissions available on your wiki by running.

Adding new rights
Information for coders only follows.

If you're adding a new right in core, for instance to control a new special page, you are required to add it to the list of available rights in,  (example). If you're doing so in an extension, you instead need to use.

You probably also want to also assign it to some user group by editing described above.

You also need to add  and   interface messages to /languages/i18n/en.json (with documentation in qqq.json). The right-* messages can be seen on Special:ListGroupRights and the action-* messages are used in a sentence like "You do not have permission to ...".