]> wagnertech.de Git - timetracker.git/blobdiff - WEB-INF/lib/ttGroupExportHelper.class.php
Introduced org_id field in tt_clients table.
[timetracker.git] / WEB-INF / lib / ttGroupExportHelper.class.php
index 56533e10d9383af68dae48821743876d62898515..d643ed9d64966697485bcc401e47b586114bf064 100644 (file)
@@ -102,7 +102,7 @@ class ttGroupExportHelper {
     $mdb2 = getConnection();
 
     $result = array();
-    $sql = "select * from tt_roles where group_id = $this->group_id"; // and org_id = $user->org_id <-- add this when possible
+    $sql = "select * from tt_roles where group_id = $this->group_id and org_id = $user->org_id";
     $res = $mdb2->query($sql);
     $result = array();
     if (!is_a($res, 'PEAR_Error')) {