WikiMedia: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Zeile 45: | Zeile 45: | ||
$wgGroupPermissions['user' ]['edit'] = false; | $wgGroupPermissions['user' ]['edit'] = false; | ||
$wgGroupPermissions['Trusted']['edit'] = true; | $wgGroupPermissions['Trusted']['edit'] = true; | ||
</pre> | |||
= Einfacher Benutzer hat nur Leserecht = | |||
<pre> | |||
$wgGroupPermissions['user']['move'] = false; | |||
$wgGroupPermissions['user']['move-subpages'] = false; | |||
$wgGroupPermissions['user']['move-rootuserpages'] = false; // can move root userpages | |||
$wgGroupPermissions['user']['move-categorypages'] = false; | |||
$wgGroupPermissions['user']['movefile'] = false; | |||
$wgGroupPermissions['user']['read'] = true; | |||
$wgGroupPermissions['user']['edit'] = false; | |||
$wgGroupPermissions['user']['createpage'] = false; | |||
$wgGroupPermissions['user']['createtalk'] = false; | |||
$wgGroupPermissions['user']['writeapi'] = false; | |||
$wgGroupPermissions['user']['upload'] = false; | |||
$wgGroupPermissions['user']['reupload'] = false; | |||
$wgGroupPermissions['user']['reupload-shared'] = false; | |||
$wgGroupPermissions['user']['minoredit'] = false; | |||
$wgGroupPermissions['user']['editmyusercss'] = false; | |||
$wgGroupPermissions['user']['editmyuserjson'] = false; | |||
$wgGroupPermissions['user']['editmyuserjs'] = false; | |||
$wgGroupPermissions['user']['editmyuserjsredirect'] = false; | |||
$wgGroupPermissions['user']['purge'] = false; | |||
$wgGroupPermissions['user']['sendemail'] = false; | |||
$wgGroupPermissions['user']['applychangetags'] = false; | |||
$wgGroupPermissions['user']['changetags'] = false; | |||
$wgGroupPermissions['user']['editcontentmodel'] = false; | |||
</pre> | </pre> |
Version vom 27. Juli 2021, 06:47 Uhr
Links
Unterschied von geschlossenem und offenem Wiki
Geschlossenes Wiki:
$wgGroupPermissions['*']['createaccount'] = false; $wgGroupPermissions['*']['edit'] = false; $wgGroupPermissions['*']['read'] = false;
Offenes Wiki:
$wgGroupPermissions['*']['createaccount'] = true; $wgGroupPermissions['*']['edit'] = true; $wgGroupPermissions['*']['read'] = true;
Zugriff auf Seiten
Namensräume
Beginnt eine Seite mit <name>:<Titel>
und ist der Namensraum <name>
eingerichtet, gehört die Seite zu diesem Namensraum.
Definition
- In LocalSettings.php:
# Namensraum "Foo" definieren: Nummer muss >= 100 und < 200 sein: define("NS_FOO", 102); // This MUST be even. define("NS_FOO_TALK", 103); // This MUST be the following odd integer. // Add namespaces. $wgExtraNamespaces[NS_FOO] = "Foo"; // Note: underscore in the name: $wgExtraNamespaces[NS_FOO_TALK] = "Foo_talk";
Zugriff auf eine Gruppe beschränken
$wgGroupPermissions['sysop']['Foo'] = true;
Anlegen Benutzergruppe
Beispiel: Anlegen der Gruppe "Trusted":
$wgGroupPermissions['Trusted'] = $wgGroupPermissions['user']; $wgGroupPermissions['user' ]['edit'] = false; $wgGroupPermissions['Trusted']['edit'] = true;
Einfacher Benutzer hat nur Leserecht
$wgGroupPermissions['user']['move'] = false; $wgGroupPermissions['user']['move-subpages'] = false; $wgGroupPermissions['user']['move-rootuserpages'] = false; // can move root userpages $wgGroupPermissions['user']['move-categorypages'] = false; $wgGroupPermissions['user']['movefile'] = false; $wgGroupPermissions['user']['read'] = true; $wgGroupPermissions['user']['edit'] = false; $wgGroupPermissions['user']['createpage'] = false; $wgGroupPermissions['user']['createtalk'] = false; $wgGroupPermissions['user']['writeapi'] = false; $wgGroupPermissions['user']['upload'] = false; $wgGroupPermissions['user']['reupload'] = false; $wgGroupPermissions['user']['reupload-shared'] = false; $wgGroupPermissions['user']['minoredit'] = false; $wgGroupPermissions['user']['editmyusercss'] = false; $wgGroupPermissions['user']['editmyuserjson'] = false; $wgGroupPermissions['user']['editmyuserjs'] = false; $wgGroupPermissions['user']['editmyuserjsredirect'] = false; $wgGroupPermissions['user']['purge'] = false; $wgGroupPermissions['user']['sendemail'] = false; $wgGroupPermissions['user']['applychangetags'] = false; $wgGroupPermissions['user']['changetags'] = false; $wgGroupPermissions['user']['editcontentmodel'] = false;