Last modified: 2010-04-03 19:22:38 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T18662, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 16662 - It would be nice if transcluded section edit links were hidden if user had no permission to edit, or treated like redlink=1
It would be nice if transcluded section edit links were hidden if user had no...
Status: RESOLVED DUPLICATE of bug 6089
Product: MediaWiki
Classification: Unclassified
Page editing (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-12-16 02:00 UTC by Splarka
Modified: 2010-04-03 19:22 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Splarka 2008-12-16 02:00:32 UTC
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 )) {
Comment 1 Brion Vibber 2008-12-16 02:01:34 UTC
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...
Comment 2 Alexandre Emsenhuber [IAlex] 2010-04-03 19:22:38 UTC

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

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links