[Fusionforge-commits] r7933 - trunk/gforge/common/forum

Julien HEYMAN jheyman at libremir.placard.fr.eu.org
Fri Jul 10 16:14:51 CEST 2009


Author: jheyman
Date: 2009-07-10 16:14:50 +0200 (Fri, 10 Jul 2009)
New Revision: 7933

Modified:
   trunk/gforge/common/forum/ForumFactory.class.php
Log:
Check value only if section_name='forum'

Modified: trunk/gforge/common/forum/ForumFactory.class.php
===================================================================
--- trunk/gforge/common/forum/ForumFactory.class.php	2009-07-10 14:14:16 UTC (rev 7932)
+++ trunk/gforge/common/forum/ForumFactory.class.php	2009-07-10 14:14:50 UTC (rev 7933)
@@ -160,8 +160,8 @@
 AND is_public < 3
 AND group_forum_id IN (SELECT role_setting.ref_id
                          FROM role_setting, user_group
-		       WHERE role_setting.value::integer >= 0
-                         AND role_setting.section_name = $2
+                         WHERE role_setting.section_name = $2
+                         AND role_setting.value::integer >= 0
                          AND role_setting.ref_id=forum_group_list_vw.group_forum_id
 			 AND user_group.role_id = role_setting.role_id
 			 AND user_group.user_id=$3)




More information about the Fusionforge-commits mailing list