I've configured my LocalSettings.php file to allow only registered users
"edit" access. I've also disabled the ability for anonymous users to
create an account. I think there are a few extras in there to help lock
things down.
I should mention that I have a mediawiki site that doesn't show the
"edit" links unless you log in. However, looking at the
LocalSettings.php file doesn't show anything that would hide the "edit"
links.
I'm still searching for a solution.
JTAutry wrote:
Damien,
I use the following in LocalSettings.php:
$wgWhitelistRead = array( "Main Page", "Special:Userlogin",
"-", "MediaWiki:Monobook.css" );
$wgGroupPermissions['*']['createaccount'] = false;
$wgGroupPermissions['*']['read'] = false;
$wgGroupPermissions['*']['edit'] = false;
$wgGroupPermissions['*']['createpage'] = false;
$wgGroupPermissions['*']['createtalk'] = false;
This effectively locks down the wiki to anyone not logged in. We have a very small
userbase that rarely changes, so I don't mind having to manually create the accounts.
Obviously if you want anonymous users to have read access you'd change it to true.
JT
----- Original Message ----
From: Damien Hull <dhull(a)digitaloverload.net>
To: MediaWiki announcements and site admin list <mediawiki-l(a)wikimedia.org>
Sent: Tuesday, November 28, 2006 10:55:55 PM
Subject: [Mediawiki-l] Hiding the "edit" link
How do you hide the "edit" link to people who are not logged in?
I know it can be done because I've done it before. Unfortunately I don't
remember what I did. I checked the LocalSettings.php file and didn't
find anything. I'm using version 1.8.2.
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
____________________________________________________________________________________
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l