Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F2104
diff.patch
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
bzimport
Nov 21 2014, 8:34 PM
2014-11-21 20:34:47 (UTC+0)
Size
795 B
Referenced Files
None
Subscribers
None
diff.patch
View Options
Index: Skin.php
===================================================================
--- Skin.php (revision 32377)
+++ Skin.php (working copy)
@@ -1281,14 +1281,14 @@
}
function editThisPage() {
- global $wgOut, $wgTitle;
+ global $wgOut, $wgTitle, $wgUser;
if ( !$wgOut->isArticleRelated() ) {
$s = wfMsg( 'protectedpage' );
} else {
- if( $wgTitle->userCan( 'edit' ) && $wgTitle->exists() ) {
+ if( $wgTitle->userCan( 'edit' ) && $wgTitle->exists() && !$wgUser->isBlocked() ) {
$t = wfMsg( 'editthispage' );
- } elseif( $wgTitle->userCan( 'create' ) && !$wgTitle->exists() ) {
+ } elseif( $wgTitle->userCan( 'create' ) && !$wgTitle->exists() && !$wgUser->isBlocked() ) {
$t = wfMsg( 'create-this-page' );
} else {
$t = wfMsg( 'viewsource' );
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1681
Default Alt Text
diff.patch (795 B)
Attached To
Mode
T4508: "you are blocked - don't edit" message similar to "you have new messages"
Attached
Detach File
Event Timeline
Log In to Comment