Last modified: 2006-07-10 08:17:16 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 T8613, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 6613 - Hide upload for users not allowed to upload
Hide upload for users not allowed to upload
Status: RESOLVED DUPLICATE of bug 3556
Product: MediaWiki
Classification: Unclassified
Interface (Other open bugs)
PC Linux
: Low trivial (vote)
: ---
Assigned To: Nobody - You can work on this!
: patch-need-review
Depends on:
  Show dependency treegraph
Reported: 2006-07-10 02:03 UTC by Charlie Huggard
Modified: 2006-07-10 08:17 UTC (History)
0 users

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

SkinTemplate patch (1.02 KB, text/plain)
2006-07-10 02:04 UTC, Charlie Huggard

Description Charlie Huggard 2006-07-10 02:03:22 UTC
Using wgGroupPermissions, we can prevent groups of people from uploading,
however the link to upload a file is still displayed on every page if the
current user is not allowed to upload. See the attached patch for a
<strike>cheap hack</strike> quick fix. 

It may be preferable however to solve this by adding a new hook to the end of
SkinTemplate::buildNavUrls()   allowing administrators to write their own
extensions to customize the display of the nav_urls sitewide.
'SkinTemplateBuildNavUrlsNav_urlsAfterPermalink' isn't sufficient in this case
as it is not invoked for special pages (and a few other cases).
Comment 1 Charlie Huggard 2006-07-10 02:04:02 UTC
Created attachment 2067 [details]
SkinTemplate patch

Patch to SkinTemplate.php
Comment 2 Charlie Huggard 2006-07-10 02:18:25 UTC
Priority -> Low, Severity -> trivial
Comment 3 Rob Church 2006-07-10 08:17:16 UTC

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

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