[Fusionforge-commits] r15057 - in branches/Branch_5_1: . src/plugins/mediawiki/www

Roland Mas lolando at fusionforge.org
Tue Feb 7 16:07:46 CET 2012


Author: lolando
Date: 2012-02-07 16:07:45 +0100 (Tue, 07 Feb 2012)
New Revision: 15057

Modified:
   branches/Branch_5_1/
   branches/Branch_5_1/src/plugins/mediawiki/www/LocalSettings.php
Log:
Mediawiki/RBAC: ensure the appropriate users get the ForgeAdmin role in MW

Modified: branches/Branch_5_1/src/plugins/mediawiki/www/LocalSettings.php
===================================================================
--- branches/Branch_5_1/src/plugins/mediawiki/www/LocalSettings.php	2012-02-06 17:57:08 UTC (rev 15056)
+++ branches/Branch_5_1/src/plugins/mediawiki/www/LocalSettings.php	2012-02-07 15:07:45 UTC (rev 15057)
@@ -169,6 +169,11 @@
 			foreach ($available_roles as $r) {
 				$linked_projects = $r->getLinkedProjects () ;
 
+				if ($r->hasGlobalPermission('forge_admin')) {
+					$rs[] = $r ;
+					continue ;
+				}
+
 				foreach ($linked_projects as $lp) {
 					if ($lp->getID() == $g->getID()) {
 						$rs[] = $r ;




More information about the Fusionforge-commits mailing list