[Fusionforge-commits] r12146 - trunk/src/plugins/mediawiki/www

Roland Mas lolando at libremir.placard.fr.eu.org
Fri Feb 4 09:52:19 CET 2011


Author: lolando
Date: 2011-02-04 09:52:18 +0100 (Fri, 04 Feb 2011)
New Revision: 12146

Modified:
   trunk/src/plugins/mediawiki/www/LocalSettings.php
Log:
Grant interwiki management rights to people with forge_admin rights

Modified: trunk/src/plugins/mediawiki/www/LocalSettings.php
===================================================================
--- trunk/src/plugins/mediawiki/www/LocalSettings.php	2011-02-03 17:41:59 UTC (rev 12145)
+++ trunk/src/plugins/mediawiki/www/LocalSettings.php	2011-02-04 08:52:18 UTC (rev 12146)
@@ -270,6 +270,14 @@
 		$wgGroupPermissions[$gr]['importupload']  = $r->hasPermission ('plugin_mediawiki_admin', $g->getID()) ;
 		$wgGroupPermissions[$gr]['siteadmin']     = $r->hasPermission ('plugin_mediawiki_admin', $g->getID()) ;
 	}	
+
+	$rs = RBACEngine::getInstance()->getGlobalRoles();
+	foreach ($rs as $r) {
+		$gr = FusionForgeRoleToMediawikiGroupName ($r, $g) ;
+		
+		// Interwiki management restricted to forge admins
+		$wgGroupPermissions[$gr]['interwiki'] = $r->hasPermission ('forge_admin') ;
+	}
 }
 
 function NoLinkOnMainPage(&$personal_urls){




More information about the Fusionforge-commits mailing list