Moin,
I configured my mediawiki 1.24.0 to restrict page access to logged in users:
$wgWhitelistRead = array( "Hauptseite", "Special:Userlogin", "-", "MediaWiki:Monobook.css", "MediaWiki:Common.css" );
// first, we colse everything $wgGroupPermissions['*']['createaccount'] = false; $wgGroupPermissions['*']['edit'] = false; $wgGroupPermissions['*']['read'] = false;
.... and some more configuration to grant permissions.
What I miss is a possibility to redirect the (not logged in) users to the login page instead of showing them a "you must be logged in ...." page.
Any change?
Thanks
On 29/12/14 13:36, Michael Renner wrote:
I configured my mediawiki 1.24.0 to restrict page access to logged in users:
$wgWhitelistRead = array( "Hauptseite", "Special:Userlogin", "-", "MediaWiki:Monobook.css", "MediaWiki:Common.css" );
// first, we colse everything $wgGroupPermissions['*']['createaccount'] = false; $wgGroupPermissions['*']['edit'] = false; $wgGroupPermissions['*']['read'] = false;
Do that stop access to search results? Not the links (articles), but the return from the search function?
Gordo
It should
On Monday, December 29, 2014, Gordon Joly gordon.joly@pobox.com wrote:
On 29/12/14 13:36, Michael Renner wrote:
I configured my mediawiki 1.24.0 to restrict page access to logged in users:
$wgWhitelistRead = array( "Hauptseite", "Special:Userlogin", "-", "MediaWiki:Monobook.css", "MediaWiki:Common.css" );
// first, we colse everything $wgGroupPermissions['*']['createaccount'] = false; $wgGroupPermissions['*']['edit'] = false; $wgGroupPermissions['*']['read'] = false;
Do that stop access to search results? Not the links (articles), but the return from the search function?
Gordo
MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
On Mon, 29 Dec 2014 14:36:38 +0100, Michael Renner michael.renner@gmx.de wrote:
What I miss is a possibility to redirect the (not logged in) users to the login page instead of showing them a "you must be logged in ...." page.
Hmm. We already do this, but only if something directly requires the user to be logged-in (=to have an account), such as Special:Watchlist or Special:Preferences. We don't generally do it if something requires the user to have a permission that logged-in users happen to have, like in your case. Perhaps we should.
Coding-wise, that would probably require modifying the PermissionsError class to work a bit more like the UserNotLoggedIn class.
mediawiki-l@lists.wikimedia.org