Page MenuHomePhabricator

It would be nice if transcluded section edit links were hidden if user had no permission to edit, or treated like redlink=1
Closed, ResolvedPublic

Description

Author: herd

Description:
Edit section links are not shown when you do not have permission to edit a page, and are if you do. Transcluded sections are treated as being part of the page being viewed, depsite linking to the transcluded page's edit action.

It would be nice if these could be hidden if the user does not have permission to edit the page linked, and shown if the user does (regardless the page being editable or not).

Barring such an expensive tricky feature, perhaps a simple check where redlink=1 is performed, for section starting with T- to do the same thing (redirect to view):

if ( $wgRequest->getBool( 'redlink' ) || preg_match( '/^T\-/', $section )) {


Version: unspecified
Severity: enhancement

Details

Reference
bz16662

Event Timeline

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

IIRC the main problem is that there's not a good way to put the total of all possible permission states into the parser cache key...

  • This bug has been marked as a duplicate of bug 6089 ***