Timwi wrote:
Update of /cvsroot/wikipedia/phase3/includes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19521/includes
Modified Files: SpecialPage.php Log Message: Special:Userlogin would display "sysop access required" message when user was already logged in. Fixed
Index: SpecialPage.php
RCS file: /cvsroot/wikipedia/phase3/includes/SpecialPage.php,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 *** SpecialPage.php 24 Oct 2004 19:14:46 -0000 1.24 --- SpecialPage.php 12 Nov 2004 21:56:58 -0000 1.25
*** 27,32 **** 'BrokenRedirects' => new UnlistedSpecialPage ( 'BrokenRedirects' ), 'Disambiguations' => new UnlistedSpecialPage ( 'Disambiguations' ), ! ! 'Userlogin' => new SpecialPage( 'Userlogin', 'createaccount' ), 'Userlogout' => new UnlistedSpecialPage( 'Userlogout' ), 'Preferences' => new SpecialPage( 'Preferences' ), --- 27,32 ---- 'BrokenRedirects' => new UnlistedSpecialPage ( 'BrokenRedirects' ), 'Disambiguations' => new UnlistedSpecialPage ( 'Disambiguations' ), ! ! 'Userlogin' => new SpecialPage( 'Userlogin' ), 'Userlogout' => new UnlistedSpecialPage( 'Userlogout' ), 'Preferences' => new SpecialPage( 'Preferences' ),
*** 43,57 **** 'Uncategorizedpages'=> new SpecialPage( 'Uncategorizedpages' ), 'Unusedimages' => new SpecialPage( 'Unusedimages' ) ! );
global $wgDisableCounters; if( !$wgDisableCounters ) { $wgSpecialPages['Popularpages'] = new SpecialPage( 'Popularpages' ); ! } ! ! global $wgUseData ; ! if ( $wgUseData ) { $wgSpecialPages['Data'] = new SpecialPage( 'Data' ); ! }
$wgSpecialPages = array_merge($wgSpecialPages, array ( --- 43,57 ---- 'Uncategorizedpages'=> new SpecialPage( 'Uncategorizedpages' ), 'Unusedimages' => new SpecialPage( 'Unusedimages' ) ! );
global $wgDisableCounters; if( !$wgDisableCounters ) { $wgSpecialPages['Popularpages'] = new SpecialPage( 'Popularpages' ); ! } ! ! global $wgUseData ; ! if ( $wgUseData ) { $wgSpecialPages['Data'] = new SpecialPage( 'Data' ); ! }
$wgSpecialPages = array_merge($wgSpecialPages, array (
Timwi,
Please patch your database using: ./maintenance/archives/patch-userlevels-defaultgroups.sql
That will create default groups and assign to anonymous users the right to create an account.
Your patch just broke a feature known as "only sysop can create account".
I am reverting your change.
Ashar Voultoiz wrote:
Timwi wrote:
Update of /cvsroot/wikipedia/phase3/includes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19521/includes
Modified Files: SpecialPage.php Log Message: Special:Userlogin would display "sysop access required" message when user was already logged in. Fixed
Index: SpecialPage.php
RCS file: /cvsroot/wikipedia/phase3/includes/SpecialPage.php,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 *** SpecialPage.php 24 Oct 2004 19:14:46 -0000 1.24 --- SpecialPage.php 12 Nov 2004 21:56:58 -0000 1.25
*** 27,32 **** 'BrokenRedirects' => new UnlistedSpecialPage ( 'BrokenRedirects' ), 'Disambiguations' => new UnlistedSpecialPage ( 'Disambiguations' ), ! ! 'Userlogin' => new SpecialPage( 'Userlogin', 'createaccount' ), 'Userlogout' => new UnlistedSpecialPage( 'Userlogout' ), 'Preferences' => new SpecialPage( 'Preferences' ), --- 27,32 ---- 'BrokenRedirects' => new UnlistedSpecialPage ( 'BrokenRedirects' ), 'Disambiguations' => new UnlistedSpecialPage ( 'Disambiguations' ), ! ! 'Userlogin' => new SpecialPage( 'Userlogin' ), 'Userlogout' => new UnlistedSpecialPage( 'Userlogout' ), 'Preferences' => new SpecialPage( 'Preferences' ),
*** 43,57 **** 'Uncategorizedpages'=> new SpecialPage( 'Uncategorizedpages' ), 'Unusedimages' => new SpecialPage( 'Unusedimages' ) ! ); global $wgDisableCounters; if( !$wgDisableCounters ) { $wgSpecialPages['Popularpages'] = new SpecialPage( 'Popularpages' ); ! } ! ! global $wgUseData ; ! if ( $wgUseData ) { $wgSpecialPages['Data'] = new SpecialPage( 'Data' ); ! } $wgSpecialPages = array_merge($wgSpecialPages, array ( --- 43,57 ---- 'Uncategorizedpages'=> new SpecialPage( 'Uncategorizedpages' ), 'Unusedimages' => new SpecialPage( 'Unusedimages' ) ! ); global $wgDisableCounters; if( !$wgDisableCounters ) { $wgSpecialPages['Popularpages'] = new SpecialPage( 'Popularpages' ); ! } ! ! global $wgUseData ; ! if ( $wgUseData ) { $wgSpecialPages['Data'] = new SpecialPage( 'Data' ); ! } $wgSpecialPages = array_merge($wgSpecialPages, array (
Timwi,
Please patch your database using: ./maintenance/archives/patch-userlevels-defaultgroups.sql
That will create default groups and assign to anonymous users the right to create an account.
Your patch just broke a feature known as "only sysop can create account".
I am reverting your change.
Ignore my reply. Did not revert.
I need to come up with a better patch to restrict user account creation and to allow the creation of account by someone else (ex: bureaucrat).
wikitech-l@lists.wikimedia.org