Page MenuHomePhabricator

Section editing links can't be disabled
Closed, ResolvedPublic

Description

Author: dodgy

Description:
In Parser.php:
if( !$this->mTitle->userCanEdit() ) {

$showEditLink = 0;

} else {

$showEditLink = $this->mOptions->getEditSection();

}


The code above is not supposed to show edit section links if the user doesn't
have the edit permission but it does anyway.

In DefaultSettings.php the following suggestion appears in the comments:

  • For instance, to disable section editing links:
  • $wgDefaultUserOptions ['editsection'] = 0;

But that doesn't work either.

Moreover, in Parser.php below:
$this->mEditSection = true;


This


Version: 1.6.x
Severity: normal
Platform: PC

Details

Reference
bz5651

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:11 PM
bzimport set Reference to bz5651.
bzimport added a subscriber: Unknown Object (MLST).

robchur wrote:

Fixed in SVN trunk, r14220.