[Olpc-sysadmin] vig.laptop.org wiki edit rights
Frederick Grose
fgrose at gmail.com
Tue May 19 22:47:51 EDT 2009
We are planning to make vig.laptop.org a test/development wiki. See
http://vig.laptop.org/wiki/index.php/Wikidevel, a planning page.
Beginning about 16 May 2009, the vig.laptop.org wiki became a target
of spam vandals. Today we decided to restrict editing to confirmed
accounts.
I appended these lines to /var/www/wiki/LocalSettings.php on vig.laptop.org:
# added by FGrose on 19May2009 to allow editing by emailconfirmed users only.
# Disable for everyone.
$wgGroupPermissions['*']['edit'] = false;
# Disable for users, too: by default 'user' is allowed to edit, even
if '*' is not.
$wgGroupPermissions['user']['edit'] = false;
# Make it so users with confirmed e-mail addresses are in the group.
$wgAutopromote['emailconfirmed'] = APCOND_EMAILCONFIRMED;
# Hide group from user list.
$wgImplicitGroups = array( 'emailconfirmed' );
# Finally, set it to true for the desired group.
$wgGroupPermissions['emailconfirmed']['edit'] = true;
code from http://www.mediawiki.org/wiki/Manual:User_rights#Examples
NOTE:
This change will require current users to confirm their email address on their
http://vig.laptop.org/wiki/index.php/Special:Preferences page before
they can edit pages again.
(http://vig.laptop.org/wiki/index.php/Special:ConfirmEmail)
NOTE:NOTE:
I haven't gotten a new confirmation code yet from vig.laptop.org, so
if that process is not working,
I'll have to relax the restriction until that is sorted out.
--Fred
More information about the Olpc-sysadmin
mailing list