Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3045
checkuserpatch
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
bzimport
Nov 21 2014, 9:20 PM
2014-11-21 21:20:39 (UTC+0)
Size
811 B
Referenced Files
None
Subscribers
None
checkuserpatch
View Options
Index: CheckUser/CheckUser_body.php
===================================================================
--- CheckUser/CheckUser_body.php (revision 16887)
+++ CheckUser/CheckUser_body.php (working copy)
@@ -11,7 +11,7 @@
$wgMessageCache->addMessages( $wgCheckUserMessages[$key], $key );
}
-class CheckUser extends UnlistedSpecialPage
+class CheckUser extends SpecialPage
{
function CheckUser() {
SpecialPage::SpecialPage('CheckUser', 'checkuser');
@@ -21,9 +21,7 @@
global $wgRequest, $wgOut, $wgTitle, $wgUser;
if ( !in_array( 'checkuser', $wgUser->getRights() ) ) {
- $wgOut->setArticleRelated( false );
- $wgOut->setRobotpolicy( 'noindex,nofollow' );
- $wgOut->errorpage( 'nosuchspecialpage', 'nospecialpagetext' );
+ $wgOut->permissionRequired( 'checkuser' );
return;
}
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2615
Default Alt Text
checkuserpatch (811 B)
Attached To
Mode
T8981: [Special:CheckUser] - "No such special page" instead of "Permission error"
Attached
Detach File
Event Timeline
Log In to Comment