[evolvis-commits] r15210: Unbreak Group::getRoles() in non-PFO RBAC

mirabilos at evolvis.org mirabilos at evolvis.org
Mon Feb 28 23:49:34 CET 2011


Author: mirabilos
Date: 2011-02-28 23:49:34 +0100 (Mon, 28 Feb 2011)
New Revision: 15210

Modified:
   trunk/gforge_base/evolvisforge-5.1/gforge/common/include/Group.class.php
Log:
Unbreak Group::getRoles() in non-PFO RBAC

Modified: trunk/gforge_base/evolvisforge-5.1/gforge/common/include/Group.class.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/gforge/common/include/Group.class.php	2011-02-28 22:49:32 UTC (rev 15209)
+++ trunk/gforge_base/evolvisforge-5.1/gforge/common/include/Group.class.php	2011-02-28 22:49:34 UTC (rev 15210)
@@ -2433,6 +2433,9 @@
 		} else {
 			$res = db_query_params ('SELECT role_id FROM role WHERE group_id=$1',
 							    array ($this->getID()));
+			while ($arr =& db_fetch_array($res)) {
+				$role_ids[] = $arr['role_id'] ;
+			}
 		}
 		
 		return array_unique ($role_ids) ;



More information about the evolvis-commits mailing list