Bug 883384 (CR-wikimo-AW001)

Change request for wiki.m.o LocalSettings.php

RESOLVED FIXED

Status

Infrastructure & Operations
WebOps: IT-Managed Tools
RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: AlisonW, Unassigned)

Tracking

Details

(Reporter)

Description

5 years ago
Change request  

Submitted: 2013-06-14  AlisonW
Required:  asap but not urgent

Product: wiki.m.o

Reason: Improve anti-spammer and security measures by preventing the creation of new articles by newly-registered accounts; and associated changes

Action: Edit file named and save. No additional action required; should be picked up by system automatically.

File: LocalSettings.php (top-level directory)

=== #1 ===
Lines 213-217 (Note: some new entries are actually redundant but serve as documentation
   from:
$wgGroupPermissions['*']['edit'] = false;
$wgGroupPermissions['user']['move'] = false;
$wgGroupPermissions['canmove']['move'] = true;
$wgGroupPermissions['canmove']['canmove'] = true;
$wgGroupPermissions['sysop']['canmove'] = true;
   to:
$wgGroupPermissions['*']['edit'] = false;
$wgGroupPermissions['*']['createaccount'] = true;
$wgGroupPermissions['user']['edit'] = true;
$wgGroupPermissions['user']['create'] = false;
$wgGroupPermissions['user']['move'] = false;
$wgGroupPermissions['user']['upload'] = true;
$wgGroupPermissions['user']['reupload-own'] = true;
$wgGroupPermissions['user']['reupload-shared'] = false;
$wgGroupPermissions['autoconfirmed']['create'] = true;
$wgGroupPermissions['autoconfirmed']['reupload-shared'] = true;
$wgGroupPermissions['autoconfirmed']['patrol'] = true;
$wgGroupPermissions['canmove']['move'] = true;
$wgGroupPermissions['canmove']['canmove'] = true;
$wgGroupPermissions['sysop']['move'] = true; 
$wgGroupPermissions['sysop']['rollback'] = true; 
$wgGroupPermissions['sysop']['canmove'] = true; 
$wgGroupPermissions['sysop']['autopatrol'] = true;
$wgGroupPermissions['sysop']['upload_by_url'] = true;
$wgGroupPermissions['sysop']['deleterevision'] = true;
$wgGroupPermissions['sysop']['deletelogentry'] = false;
$wgGroupPermissions['bureaucrat']['usermerge'] = true; 
$wgGroupPermissions['bureaucrat']['userrights'] = true; 
$wgGroupPermissions['bureaucrat']['browsearchive'] = true; 
$wgGroupPermissions['bureaucrat']['deletedhistory'] = true; 
$wgGroupPermissions['bureaucrat']['deletedtext'] = true; 
$wgGroupPermissions['bureaucrat']['move-subpages'] = true; 
$wgGroupPermissions['bureaucrat']['suppressredirect'] = true; 
$wgGroupPermissions['bureaucrat']['deletelogentry'] = true;
$wgGroupPermissions['bureaucrat']['tboverride'] = true; 

=== #2 ===
line 382 (line 406 after edit #1 above)
   from:
$wgFileExtensions   = array( 'gz', 'tar', 'png', 'gif', 'jpg', 'jpeg', 'ppt', 'pdf', 'doc', 'xls', 'zip', 'ics', 'mp3', 'ogg', 'odt', 'odp', 'svg' );
   to:
$wgFileExtensions   = array( 'gz', 'tar', 'png', 'gif', 'jpg', 'jpeg', 'ppt', 'pdf', 'doc', 'xls', 'zip', 'ics', 'mp3', 'ogg', 'odt', 'odp', 'svg', 'odf', 'ods' );

=== #3 ===
add new lines at end of file:

$wgWhitelistRead = array( 'Main Page', 'Special:Userlogin', 'Special:Userlogout', '-', 'MediaWiki:Monobook.css', 'MediaWiki:Monobook.js' ),

$wgAutoConfirmAge =  5 * 3600 * 24, // 5 days to pass isNewbie()
$wgAutoConfirmCount = 10;	// and have ten edits

=== #4 ===
The variables in lines 193-196 appear to all be assigned blanks. Could you please confirm this, or otherwise. (If blank a further CR will be made next week)

=== ===
Man Thanks!

Any issues please ping AlisonW on irc or drop an email to mozilla@alisonw.com or reply to bugzilla. Smoke signals sadly don't work at night.
(Reporter)

Comment 1

5 years ago
Amendment to #1 above to take care of edge case of an admin/bureaucrat creating the new user

=== #1 ===
Lines 211-217 (Note: some new entries are actually redundant but serve as documentation
   from:
$wgRestrictionLevels[] = 'canmove';

$wgGroupPermissions['*']['edit'] = false;
$wgGroupPermissions['user']['move'] = false;
$wgGroupPermissions['canmove']['move'] = true;
$wgGroupPermissions['canmove']['canmove'] = true;
$wgGroupPermissions['sysop']['canmove'] = true;
   to:
$wgRestrictionLevels[] = 'canmove';
$wgRestrictionLevels[] = 'confirm';

$wgGroupPermissions['*']['edit'] = false;
$wgGroupPermissions['*']['createaccount'] = true;
$wgGroupPermissions['user']['edit'] = true;
$wgGroupPermissions['user']['create'] = false;
$wgGroupPermissions['user']['move'] = false;
$wgGroupPermissions['user']['upload'] = true;
$wgGroupPermissions['user']['reupload-own'] = true;
$wgGroupPermissions['user']['reupload-shared'] = false;
$wgGroupPermissions['autoconfirmed']['create'] = true;
$wgGroupPermissions['autoconfirmed']['reupload-shared'] = true;
$wgGroupPermissions['autoconfirmed']['patrol'] = true;
$wgGroupPermissions['confirm']['create'] = true;
$wgGroupPermissions['confirm']['reupload-shared'] = true;
$wgGroupPermissions['confirm']['patrol'] = true;
$wgGroupPermissions['canmove']['move'] = true;
$wgGroupPermissions['canmove']['canmove'] = true;
$wgGroupPermissions['sysop']['move'] = true; 
$wgGroupPermissions['sysop']['rollback'] = true; 
$wgGroupPermissions['sysop']['canmove'] = true; 
$wgGroupPermissions['sysop']['autopatrol'] = true;
$wgGroupPermissions['sysop']['upload_by_url'] = true;
$wgGroupPermissions['sysop']['deleterevision'] = true;
$wgGroupPermissions['sysop']['deletelogentry'] = false;
$wgGroupPermissions['bureaucrat']['usermerge'] = true; 
$wgGroupPermissions['bureaucrat']['userrights'] = true; 
$wgGroupPermissions['bureaucrat']['browsearchive'] = true; 
$wgGroupPermissions['bureaucrat']['deletedhistory'] = true; 
$wgGroupPermissions['bureaucrat']['deletedtext'] = true; 
$wgGroupPermissions['bureaucrat']['move-subpages'] = true; 
$wgGroupPermissions['bureaucrat']['suppressredirect'] = true; 
$wgGroupPermissions['bureaucrat']['deletelogentry'] = true;
$wgGroupPermissions['bureaucrat']['tboverride'] = true;
(Reporter)

Updated

5 years ago
Status: UNCONFIRMED → NEW
Ever confirmed: true

Comment 2

5 years ago
#1 from comment 1 done

#2 & #3 done (Assume , was typo and changed to ; two places)

for #4 if you are referring to the $wgRights{Page|Url|Text|Icon} than yes all are blank.

Regards
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.