Group :: Networking/WWW
RPM: mediawiki-extensions-AccessControl
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Patch: AccessControl-fix.patch
Download
Download
diff --git a/accesscontrol/AccessControl.php b/accesscontrol/AccessControl.php
index 68de996..322cdf5 100644
--- a/accesscontrol/AccessControl.php
+++ b/accesscontrol/AccessControl.php
@@ -19,8 +19,8 @@ if( !defined( 'MEDIAWIKI' ) ) {
$wgAccessControlMessages = true; // if set to true, show a line on of each secured page, which says, which groups are allowed to see this page.
$wgUseMediaWikiGroups = true; // use the groups from MediaWiki with Usergroup pages
-$wgAccessControlDebug = true; // Debug log on if set to true
-$wgAccessControlDebugFile = "/var/www/debug.txt"; // Path to the debug log
+$wgAccessControlDebug = false; // Debug log on if set to true
+$wgAccessControlDebugFile = "/var/tmp/ac_debug.txt"; // Path to the debug log
$wgAdminCanReadAll = true; // sysop users can read all restricted pages
$wgAllowUserList = true; // Users can managed access list from userspace
@@ -167,6 +167,7 @@ function displayGroups() {
function getUsersFromPages($skupina) {
/* Extracts the allowed users from the userspace access list */
$allowedAccess = Array();
+ $allow = "";
$Title = new Title();
// create title in namespace 0 (default) from groupList
@@ -355,10 +356,12 @@ function getContentTag($content) {
}
-function controlEditAccess(&$editpage) {
+function controlEditAccess($editpage) {
/* Hook function for the edit action; */
global $wgAllowUserList, $wgUser;
+ //return true;
+
$title = $editpage->mTitle;
$editPage = new Article( $title, 0 );
$content = $editPage->getContent();