[Fusionforge-commits] r15708 - in trunk: . src/db

Roland Mas lolando at fusionforge.org
Sun Jun 10 17:38:58 CEST 2012


Author: lolando
Date: 2012-06-10 17:38:57 +0200 (Sun, 10 Jun 2012)
New Revision: 15708

Modified:
   trunk/
   trunk/src/db/20120605-drop-obsolete.sql
Log:
Fixed migration logic for tracker submission rights

Modified: trunk/src/db/20120605-drop-obsolete.sql
===================================================================
--- trunk/src/db/20120605-drop-obsolete.sql	2012-06-10 15:24:24 UTC (rev 15707)
+++ trunk/src/db/20120605-drop-obsolete.sql	2012-06-10 15:38:57 UTC (rev 15708)
@@ -21,7 +21,7 @@
 	FOR agl IN SELECT * FROM artifact_group_list WHERE allow_anon = 1
 	LOOP
 		tid = agl.group_artifact_id ;
-		UPDATE pfo_role_setting SET perm_val = perm_val|8 WHERE perm_val > 0 AND role_id = 1 AND (section_name = 'tracker' OR section_name = 'new_tracker');
+		UPDATE pfo_role_setting SET perm_val = perm_val|8 WHERE perm_val > 0 AND role_id = 1 AND section_name = 'tracker' AND ref_id = tid;
 	END LOOP ;
 	RETURN 0;
 END ;




More information about the Fusionforge-commits mailing list