[Fusionforge-commits] r15237 - in branches/Branch_5_1: . src/www/top

Roland Mas lolando at fusionforge.org
Thu Mar 29 11:14:30 CEST 2012


Author: lolando
Date: 2012-03-29 11:14:29 +0200 (Thu, 29 Mar 2012)
New Revision: 15237

Modified:
   branches/Branch_5_1/
   branches/Branch_5_1/src/www/top/toplist.php
Log:
Fixed permission checking in top projects list

Modified: branches/Branch_5_1/src/www/top/toplist.php
===================================================================
--- branches/Branch_5_1/src/www/top/toplist.php	2012-03-29 09:12:54 UTC (rev 15236)
+++ branches/Branch_5_1/src/www/top/toplist.php	2012-03-29 09:14:29 UTC (rev 15237)
@@ -61,7 +61,7 @@
 $display_rank = 0;
 $i=0;
 while ($row_top = db_fetch_array($res_top)) {
-	if (!forge_check_perm ('project_read', $row_top['group_id'])) {
+	if (!forge_check_perm ('project_read', $row_top['group_id']) && forge_check_perm('frs', $row_new['group_id'], 'read_public') ) {
 		continue ;
 	}
 	$i++;




More information about the Fusionforge-commits mailing list