Sorry, I overlooked that. You can include the entire array in Localsettings.php as I have done:
/** * Permission keys given to users in each group. * All users are implicitly in the '*' group including anonymous visitors; * logged-in users are all implicitly in the 'user' group. These will be * combined with the permissions of all groups that a given user is listed * in in the user_groups table. * * This replaces wgWhitelistAccount and wgWhitelistEdit */ $wgGroupPermissions = array();
$wgGroupPermissions['*' ]['createaccount'] = false; $wgGroupPermissions['*' ]['read'] = false; $wgGroupPermissions['*' ]['edit'] = false;
$wgGroupPermissions['user' ]['move'] = true; $wgGroupPermissions['user' ]['read'] = true; $wgGroupPermissions['user' ]['edit'] = true; $wgGroupPermissions['user' ]['upload'] = true;
$wgGroupPermissions['bot' ]['bot'] = true;
$wgGroupPermissions['sysop']['block'] = true; $wgGroupPermissions['sysop']['read'] = true; $wgGroupPermissions['sysop']['edit'] = true; $wgGroupPermissions['sysop']['createaccount'] = true; $wgGroupPermissions['sysop']['delete'] = true; $wgGroupPermissions['sysop']['editinterface'] = true; $wgGroupPermissions['sysop']['import'] = true; $wgGroupPermissions['sysop']['importupload'] = true; $wgGroupPermissions['sysop']['move'] = true; $wgGroupPermissions['sysop']['patrol'] = true; $wgGroupPermissions['sysop']['protect'] = true; $wgGroupPermissions['sysop']['rollback'] = true; $wgGroupPermissions['sysop']['upload'] = true;
$wgGroupPermissions['bureaucrat']['userrights'] = true; // Used by the Special:Renameuser extension $wgGroupPermissions['bureaucrat']['renameuser'] = true;
-----Original Message----- From: mediawiki-l-bounces@Wikimedia.org [mailto:mediawiki-l-bounces@Wikimedia.org] On Behalf Of Joshua Oreman Sent: Friday, September 02, 2005 12:34 PM To: MediaWiki announcements and site admin list Subject: Re: [Mediawiki-l] How to Temp. Disable Wiki.
On 9/2/05, Bass, Joshua L joshua.l.bass@lmco.com wrote:
For 1.5 mediawiki add this to your Localsettings.php. It will allow only registered members to read and edit the wiki and prevent newcomers from registering:
$wgGroupPermissions = array();
Watch out. This clears the permissions array; see below. I'd recommend removing this line.
$wgGroupPermissions['*' ]['createaccount'] = false; $wgGroupPermissions['*' ]['read'] = false; $wgGroupPermissions['*' ]['edit'] = false;
$wgGroupPermissions['user' ]['move'] = true; $wgGroupPermissions['user' ]['read'] = true; $wgGroupPermissions['user' ]['edit'] = true; $wgGroupPermissions['user' ]['upload'] = true;
There's no "sysop" entries in there. If you use this code, sysops won't have any special permissions. Thus, there will be no type of user allowed to delete pages. I doubt this is what you want.
-- Josh
-----Original Message----- From: mediawiki-l-bounces@Wikimedia.org [mailto:mediawiki-l-bounces@Wikimedia.org] On Behalf Of Aaron Crayne Sent: Friday, September 02, 2005 10:39 AM To: mediawiki-l@Wikimedia.org Subject: [Mediawiki-l] How to Temp. Disable Wiki.
Is there a way I can install a wiki, but disable it for casual visitors until we have most of our content and templates added. We have been preparing to install a new wiki at its own domain, we have a
lot of documents (that are unfortuneatley not in a sql dump), templates, graphics etc that are all part of it. It would be nice to have the time to get all of our info inplace before we open the doors.
Thanks Aaron _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l