Manual:$wgRestrictionTypes

From Linux Web Expert

Revision as of 09:55, 20 October 2023 by imported>Clump (Reverted edits by 2001:D08:139B:E7C0:54D7:60FF:FEFB:CD61 (talk) to last version by Clump)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<translate> Access</translate>: $wgRestrictionTypes
Actions that can be restricted
<translate> Introduced in version:</translate>1.6.0 (r12207)
<translate> Removed in version:</translate><translate> still in use</translate>
<translate> Allowed values:</translate>(array of strings)
<translate> Default value:</translate>[ 'create', 'edit', 'move', 'upload' ] (1.17+)
array( 'edit', 'move' ) (1.6-1.16)

Details

This array contains the actions that can be restricted, that is, made unavailable to classes of users via protection (using action=protect).

These labels are translated through restriction-* messages.

It is possible to add additional actions which can't be restricted by default, for instance delete and protect itself.

See also