[Fusionforge-commits] r7932 - branches/Branch_4_8/gforge/common/forum

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


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

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

Modified: branches/Branch_4_8/gforge/common/forum/ForumFactory.class.php
===================================================================
--- branches/Branch_4_8/gforge/common/forum/ForumFactory.class.php	2009-07-09 19:43:50 UTC (rev 7931)
+++ branches/Branch_4_8/gforge/common/forum/ForumFactory.class.php	2009-07-10 14:14:16 UTC (rev 7932)
@@ -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