-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Rob Church wrote:
On 04/09/07, Platonides Platonides@gmail.com wrote:
b) Alllow everybody to upload images anonymous. $wgGroupPermissions['*' ]['upload'] = true;
This won't work; the upload form is hard-coded to require a logged-in user.
How do you figure?
if( !$wgUser->isAllowed( 'upload' ) ) { if( !$wgUser->isLoggedIn() ) { $wgOut->showErrorPage( 'uploadnologin', 'uploadnologintext' ); } else { $wgOut->permissionRequired( 'upload' ); } return; }
are the relevant lines. It would appear that if the user has the upload right it will never check if the user is logged in or not. Is there something I'm missing?
- -- Daniel Cannon (AmiDaniel)
http://amidaniel.com cannon.danielc@gmail.com