[Fusionforge-commits] r11104 - trunk/src/plugins/mediawiki/common

Roland Mas lolando at libremir.placard.fr.eu.org
Thu Oct 21 11:29:20 CEST 2010


Author: lolando
Date: 2010-10-21 11:29:20 +0200 (Thu, 21 Oct 2010)
New Revision: 11104

Modified:
   trunk/src/plugins/mediawiki/common/MediaWikiPlugin.class.php
Log:
Fixes in normalization for RBAC in Mediawiki plugin

Modified: trunk/src/plugins/mediawiki/common/MediaWikiPlugin.class.php
===================================================================
--- trunk/src/plugins/mediawiki/common/MediaWikiPlugin.class.php	2010-10-21 09:23:46 UTC (rev 11103)
+++ trunk/src/plugins/mediawiki/common/MediaWikiPlugin.class.php	2010-10-21 09:29:20 UTC (rev 11104)
@@ -172,7 +172,10 @@
 			if (USE_PFO_RBAC) {
 				$projects = $role->getLinkedProjects() ;		
 				foreach ($projects as $p) {
-					$role->normalizePermsForSection ($new_pa, $section, $p->getID()) ;
+					$role->normalizePermsForSection ($new_pa, 'plugin_mediawiki_read', $p->getID()) ;
+					$role->normalizePermsForSection ($new_pa, 'plugin_mediawiki_edit', $p->getID()) ;
+					$role->normalizePermsForSection ($new_pa, 'plugin_mediawiki_upload', $p->getID()) ;
+					$role->normalizePermsForSection ($new_pa, 'plugin_mediawiki_admin', $p->getID()) ;
 				}
 			} else {
 				$role->normalizeDataForSection ($new_sa, 'plugin_mediawiki_read') ;




More information about the Fusionforge-commits mailing list