Last modified: 2014-06-04 11:19:05 UTC
I've set the following lines in my LocalSettings.php file:
$wgGroupPermissions['*']['upload'] = true;
$wgGroupPermissions['*']['reupload'] = true;
$wgGroupPermissions['*']['reupload-shared'] = true;
but when I try to upload a file without logging in, I get the message saying
"You must be logged in to upload files."
Uploads work fine for logged-in users.
The logging infrastructure currently requires that users be
logged in to perform this action.
Is this going to be changed/updated?
*** Bug 6208 has been marked as a duplicate of this bug. ***
Created attachment 1905 [details]
This patch rewrites this piece of code, so that all the messages will be shown
only if the upload is forbidden; if the user is anonymous, a message tells him
to log in – and if not, a message tells him he should have a permission.
Created attachment 1906 [details]
Please note that this fix should be also backported, as the bug is very
important for several wikis, and the fix is small. Thanks.
We can even give an anonymous user the right to delete pages, or move them, or
block users – if we are crazy. Why can't we allow him to upload images, which is
much harmless feature?
However, I don't say it should be set by default (it absolutely shouldn't be
so), but it should be possible to set.
The fix will not be useful until the logging table contains the aforementioned field.
Applied to trunk in r16199.
(In reply to comment #7)
> The fix will not be useful until the logging table contains the aforementioned
You are right, however we shouldn't have such mistakes in the permissions
system, even if another bug makes them "legitimate". When the other bug is
fixed, we may forget to fix this small bug, for example.
*** Bug 7287 has been marked as a duplicate of this bug. ***