Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Numinix MediaWiki Demo
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Manual/User rights
(section)
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Examples === <!--T:16--> <!--T:17--> This example will disable viewing of all pages not listed in <tvar name=1></tvar>, then re-enable for registered users only: </translate> <syntaxhighlight lang="php" copy> $wgGroupPermissions['*']['read'] = false; # <translate nowrap><!--T:18--> The following line is not actually necessary, since it's in the defaults. Setting '*' to false doesn't disable rights for groups that have the right separately set to true!</translate> $wgGroupPermissions['user']['read'] = true; </syntaxhighlight> <translate> <!--T:21--> This example will disable editing of all pages, then re-enable for users with [[<tvar name=1>Special:MyLanguage/Manual:$wgEmailAuthentication</tvar>|confirmed email addresses]] only: </translate> <!-- This is pretty complicated, not so well explained and beyond scope; should we keep it? Chealer 20250722 --> <syntaxhighlight lang="php" copy> # <translate nowrap><!--T:22--> Disable for everyone.</translate> $wgGroupPermissions['*']['edit'] = false; # <translate nowrap><!--T:23--> Disable for users, too: by default 'user' is allowed to edit, even if '*' is not.</translate> $wgGroupPermissions['user']['edit'] = false; # <translate nowrap><!--T:24--> Make it so users with confirmed email addresses are in the group.</translate> $wgAutopromote['emailconfirmed'] = APCOND_EMAILCONFIRMED; # <translate nowrap><!--T:25--> Hide group from user list.</translate> $wgImplicitGroups[] = 'emailconfirmed'; # <translate nowrap><!--T:26--> Finally, set it to true for the desired group.</translate> $wgGroupPermissions['emailconfirmed']['edit'] = true; </syntaxhighlight> <translate>
Summary:
Please note that all contributions to Numinix MediaWiki Demo may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Project:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)