Last modified: 2006-07-10 08:17:16 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
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.