From ed4c31bd4d0d3c3320461308bb295501ab7183ef Mon Sep 17 00:00:00 2001 From: Platonides Date: Wed, 29 Dec 2010 16:42:46 +0000 Subject: [PATCH] (Bug 26458) Section edit links appear on pages that user does not have right to edit ( --- includes/Article.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Article.php b/includes/Article.php index 5a5677745a..8332cf2cce 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -1478,7 +1478,7 @@ class Article { $parserOptions->setIsPrintable( $wgOut->isPrintable() ); # Don't show section-edit links on old revisions... this way lies madness. - if ( !$this->isCurrent() || $wgOut->isPrintable() ) { + if ( !$this->isCurrent() || $wgOut->isPrintable() || !$this->mTitle->quickUserCan( 'edit' ) ) { $parserOptions->setEditSection( false ); } -- 2.20.1