Could not see the project, need some default permissions
Jeremy D

Jeremy D commited on 2011-11-06 15:38:34
Showing 1 changed files, with 11 additions and 11 deletions.

... ...
@@ -663,17 +663,17 @@ class mbt_to_tbg extends tbg_converter
663 663
 			// Add the default permissions.
664 664
 			$this->tbg_db->query('
665 665
 				INSERT INTO ' . $this->tbg_db_prefix . 'permissions (permission_type, target_id, allowed, module, uid, gid, tid, scope) VALUES
666
-					("canseeproject", " . $row["id"] . ", 1, "core", 1, 0, 0, 1),
667
-					("canseeprojecthierarchy", " . $row["id"] . ", 1, "core", 1, 0, 0, 1),
668
-					("canmanageproject", " . $row["id"] . ", 1, "core", 1, 0, 0, 1),
669
-					("page_project_allpages_access", " . $row["id"] . ", 1, "core", 1, 0, 0, 1),
670
-					("canvoteforissues", " . $row["id"] . ", 1, "core", 1, 0, 0, 1),
671
-					("canlockandeditlockedissues", " . $row["id"] . ", 1, "core", 1, 0, 0, 1),
672
-					("cancreateandeditissues", " . $row["id"] . ", 1, "core", 1, 0, 0, 1),
673
-					("caneditissue", " . $row["id"] . ", 1, "core", 1, 0, 0, 1),
674
-					("caneditissuecustomfields", " . $row["id"] . ", 1, "core", 1, 0, 0, 1),
675
-					("canaddextrainformationtoissues", " . $row["id"] . ", 1, "core", 1, 0, 0, 1),
676
-					("canpostseeandeditallcomments", " . $row["id"] . ", 1, "core", 1, 0, 0, 1)');
666
+					("canseeproject", ' . $row['id'] . ', 1, "core", 1, 0, 0, 1),
667
+					("canseeprojecthierarchy", ' . $row['id'] . ', 1, "core", 1, 0, 0, 1),
668
+					("canmanageproject", ' . $row['id'] . ', 1, "core", 1, 0, 0, 1),
669
+					("page_project_allpages_access", ' . $row['id'] . ', 1, "core", 1, 0, 0, 1),
670
+					("canvoteforissues", ' . $row['id'] . ', 1, "core", 1, 0, 0, 1),
671
+					("canlockandeditlockedissues", ' . $row['id'] . ', 1, "core", 1, 0, 0, 1),
672
+					("cancreateandeditissues", ' . $row['id'] . ', 1, "core", 1, 0, 0, 1),
673
+					("caneditissue", ' . $row['id'] . ', 1, "core", 1, 0, 0, 1),
674
+					("caneditissuecustomfields", ' . $row['id'] . ', 1, "core", 1, 0, 0, 1),
675
+					("canaddextrainformationtoissues", ' . $row['id'] . ', 1, "core", 1, 0, 0, 1),
676
+					("canpostseeandeditallcomments", ' . $row['id'] . ', 1, "core", 1, 0, 0, 1)');
677 677
 
678 678
 			++$i;
679 679
 		}
680 680