[HOME PAGE] [STORES] [CLASSICISTRANIERI.COM] [FOTO] [YOUTUBE CHANNEL]


Bug 6021 – "Upload file" link is shown even when a user is not authorized to upload

Last modified: 2006-05-19 16:06:45 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 6021 - "Upload file" link is shown even when a user is not authorized to upload
"Upload file" link is shown even when a user is not authorized to upload
Status: RESOLVED DUPLICATE of bug 3556
Product: MediaWiki
Classification: Unclassified
File management (Other open bugs)
unspecified
All All
: Normal trivial (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-05-19 12:47 UTC by Rotem Liss
Modified: 2006-05-19 16:06 UTC (History)
0 users

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


Attachments

Description Rotem Liss 2006-05-19 12:47:19 UTC
Until April 24th 2005, the "upload file" link was not shown for anonymous users.
On that date, eloquence has changed this behavior, with the following explanation:

"Enable upload navigation link for non-logged-in users. From a usability
perspective, navigation should not be surprising with random elements
popping up under certain circumstances only ("How do I upload" is a FAQ).
Special:Upload will show a message "You have to be logged in" for anonymous
users, so no confusion should arise."

However, it is very normal to hide elements for anonymous users and to show them
for registered users, and so we do about minor edits, watching pages, moving
them, etc. Also, the error for anonymous users is easy to understand ("You must
be logged in to upload files."), but the error for registered users when
restricting the uploads is not so easy to understand ("The action you have
requested is limited to users with the "upload" permission assigned. See
Wiki:Administrators."). I think that like we show all the other elements for
registered users only (actually, for authorized users only, if we change the
permissions), we should also show this one for authorized users only.

The solution is very simple – changing:

if( $wgEnableUploads ) {

in SkinTemplate::buildNavUrls (includes/SkinTemplate.php) to:

if( $wgEnableUploads && $wgUser->isAllowed( 'upload' ) ) {

will do.
Comment 2 Brion Vibber 2006-05-19 16:06:45 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.


Contents Listing Alphabetical by Author:
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z Unknown Other

Contents Listing Alphabetical by Title:
# A B C D E F G H I J K L M N O P Q R S T U V W Y Z Other

Medical Encyclopedia

Browse by first letter of topic:


A-Ag Ah-Ap Aq-Az B-Bk Bl-Bz C-Cg Ch-Co
Cp-Cz D-Di Dj-Dz E-Ep Eq-Ez F G
H-Hf Hg-Hz I-In Io-Iz J K L-Ln
Lo-Lz M-Mf Mg-Mz N O P-Pl Pm-Pz
Q R S-Sh Si-Sp Sq-Sz T-Tn To-Tz
U V W X Y Z 0-9

Biblioteca - SPANISH

Biblioteca Solidaria - SPANISH

Bugzilla

Ebooks Gratuits

Encyclopaedia Britannica 1911 - PDF

Project Gutenberg: DVD-ROM 2007

Project Gutenberg ENGLISH Selection

Project Gutenberg SPANISH Selection

Standard E-books

Wikipedia Articles Indexes

Wikipedia for Schools - ENGLISH

Wikipedia for Schools - FRENCH

Wikipedia for Schools - SPANISH

Wikipedia for Schools - PORTUGUESE

Wikipedia 2016 - FRENCH

Wikipedia HTML - CATALAN

Wikipedia Picture of the Year 2006

Wikipedia Picture of the Year 2007

Wikipedia Picture of the Year 2008

Wikipedia Picture of the Year 2009

Wikipedia Picture of the Year 2010

Wikipedia Picture of the Year 2011