Monday, November 6. 2006Version 0.4 of AccessControl Extension for MediaWikiComments
Display comments as
(Linear | Threaded)
Hallo,
leider bekomme ich unter 1.6.8 nur hin, dass die Seiten von nicht berechtigten Benutzern nicht editierbar, jedoch ohne Probleme lesbar sind. Was mache ich falsch? Habe ich einen Parameter nicht gesetzt? Vielen Dank und viele Grüße, Frank
#1
on
2006-11-07 17:40
It seems, that all users have the same problems. So here are my experiences while I'm testing this bug out.
The problem seems to be a cache bug in php or in mediawiki itself. The PHP code of the page seems not always to be executed, when an anonymous user looks at the page. I have not tested, if this problem exists since 1.8.2 or earlier. I had this problems not during development, because I have some special settings in my LocalSettings.php: # user rights # only logged in users may edit and read $wgGroupPermissions['*']['edit'] = false; $wgGroupPermissions['*']['read'] = false; # rights to read (if not logged in) just to the mainpage and some special pages (Attention: German Version $wgWhitelistRead = array( "Wiki:Portal", "Hauptseite", "Special:Userlogin", "-", "MediaWiki:Monobook.css" ); # no diskussion pages for anonyous users $wgDisableAnonTalk = true; With these settings every user must login before viewing any other page than Login and Mainpage. This setting works for me. Please tell me your experiences with this settings. Bye Martin
Im trying to use the new accesscontrol.php with Mediawiki 1.8.2, but Im getting this warning:
Warning: Cannot modify header information - headers already sent by (output started at extensions/accesscontrol.php:275) in WebResponse.php on line 9 Any idea what might cause this?
#2
on
2006-11-08 20:43
sorry, I need more information for this:
do you have other extensions loaded? can you possibly post your LocalSettings.php (without your passwords please
Not sure what I am doing wrong.
In LocalSettings.php require_once("extensions/accesscontrolSettings.php"); include("extensions/accesscontrol.php"); accesscontrol.php and accesscontrolSettings.php installed. accesscontrolSettings $wgAccessControlDisableMessages = false; $wgAccessControlGroupPrefix = "Usergroup"; $wgAccessControlNoAccessPage = "/index.php/No_Access"; $wgWikiVersion = 1.8; $wgAdminCanReadAll = true; Usergroup:CollierStaff made I then add a new file and include CollierStaff A user can see the page, and not until they try to edit it are they presented with the index.php/No_Access page. Thks
#3
on
2006-11-09 04:27
Sorry, I can't see the reply to Frank, and I have the same problem currently. Would love some help/direction to the solution please. Thanks.
#3.1.1
on
2006-11-20 02:15
The answer to Frank is comment 1.1
Again: It seems to be a caching bug (or maybe feature?) in mediawiki. You have to force your users to log on to mediawiki. In the file tips.txt in the archive are the necessary steps for this.
Okey dokey - have done everything suggested. When the JoeBloggs user logs in the first time, he cannot see the protected pages - yay! BUT: when he logs out and logs in again, he can see the protected pages... any further ideas? By the way, thanks heaps for the help so far
#3.1.1.1.1
on
2006-11-21 23:20
Please try the actual Version 0.5.
With the new version it should work.
I'm having problems using your extension; I created the group sysadmins and put my name in there. Then I created a test page and used the access control tag with sysadmins in there. I keep getting access denied.
Sorry to bug you on your blog!
#4
on
2006-11-10 17:01
Maybe you forgot the *in front of the name? The user page (e.g. Usergroup:sysadmins) should look like this:
*yourloginname (in accessControlSettings.php you should then set $wgAccessControlGroupPrefix = "Usergroup";) The page to be protected should begin with the accesscontrol - tag
Hey, thanks! That worked!
#4.1.1
on
2006-11-15 17:57
Ich stehe vor folgendem Problem: Mit MediaWiki 1.8.2 und der Version 0.4 von AccessControl schaffe ich es nur, dass Artikel für das bearbeiten geschützt sind, jedoch nicht das Lesen. Das Problem tritt auch auf, wenn ich dem Systemadmin verbiete alle Artikel zu lesen.
Über eine Antwort zur Lösung würde ich mich sehr freuen. Gruß, David
#5
on
2006-11-10 17:30
The author does not allow comments to this entry
|
Calendar
QuicksearchArchivesKategorienBlog Administration |
|||||||||||||||||||||||||||||||||||||||||||||||||
another Version is out. the extension can be downloaded under http://www.pagansoft.de/download/accesscontrol-0.5.zip Changes: Articles with the accesscontrol tag are now touched in advance to displaying it, so
Tracked: Nov 21, 21:22