-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Rob Church wrote:
On 04/09/07, Platonides <Platonides(a)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(a)gmail.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla -
http://enigmail.mozdev.org
iD8DBQFG3b2aFRAT5u/mSaMRAqzBAKCC/UL55/0kdPC9hQ6F48TijffwaACgtuDN
U5v1T9bKdP4aK64HNn0oQcU=
=ylET
-----END PGP SIGNATURE-----