Last modified: 2006-08-16 11:48:16 UTC
As anon viewing [[Special:Makesysop]] gets an unrelated message (about not being able to move pages), which does not seem necessary (as there is a permission check shortly after this anyway). The message the anon sees is "You must be a registered user and logged in to move a page." Perhaps something like this: ================================================= -if ( $wgUser->isAnon() or $wgUser->isBlocked() ) { +if ( $wgUser->isBlocked() ) { - $wgOut->errorpage( "movenologin", "movenologintext" ); + $wgOut->errorpage( /* some kind of standard message to say "you're blocked"? */ ); return; } ================================================= I don't know what the appropriate error page for a blocked user is, but presumably there is already something that handles this. Will attach a rough diff shortly (but it still needs updating of the error page line).
Created attachment 2160 [details] Incomplete patch, as outlined above
There should be used a message from r15997 ([[MediaWiki:badaccess-groups]] oder [[MediaWiki:badaccess-group2]]).
Created attachment 2214 [details] Complete patch based on Nick Jenkins' (In reply to comment #0) > I don't know what the appropriate error page for a blocked user is, but > presumably there is already something that handles this. Apparently $wgOut->blockedPage();. (In reply to comment #2) > There should be used a message from r15997 ([[MediaWiki:badaccess-groups]] oder > [[MediaWiki:badaccess-group2]]). Yes, the call to $wgOut->permissionRequired a few lines later does this.
r16090.