Jump to content

Manual:$wgRestrictionTypes

From mediawiki.org
Revision as of 19:54, 21 April 2025 by Clump (talk | contribs) (Reverted edits by 2806:2F0:9200:B3E0:8D2D:A158:F863:49D0 (talk) to last version by OrangKalideres)
Access: $wgRestrictionTypes
Actions that can be restricted
Introduced in version:1.6.0 (r12207)
Removed in version:Still in use
Allowed values:(array of strings)
Default value:[ '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