Commit ca4cb4fd authored by Reto Da Forno's avatar Reto Da Forno
Browse files

only display test IDs that belong to the user

parent 41b9f7ec
...@@ -122,7 +122,8 @@ ...@@ -122,7 +122,8 @@
ON (`serv_targetimages_key` = `tbl_serv_map_test_observer_targetimages`.`targetimage_fk`) ON (`serv_targetimages_key` = `tbl_serv_map_test_observer_targetimages`.`targetimage_fk`)
LEFT JOIN `tbl_serv_tests` LEFT JOIN `tbl_serv_tests`
ON (`test_fk` = `tbl_serv_tests`.`serv_tests_key`) ON (`test_fk` = `tbl_serv_tests`.`serv_tests_key`)
WHERE (`tbl_serv_targetimages`.`owner_fk` = " . $_SESSION['serv_users_key'] . ") WHERE (`tbl_serv_targetimages`.`owner_fk` = " . $_SESSION['serv_users_key'] . ")
AND (`tbl_serv_tests`.`owner_fk` = " . $_SESSION['serv_users_key'] . ")
AND (`tbl_serv_targetimages`.`binary_hash_sha1` is not NULL) AND (`tbl_serv_targetimages`.`binary_hash_sha1` is not NULL)
GROUP BY `serv_targetimages_key` GROUP BY `serv_targetimages_key`
ORDER BY `serv_targetimages_key` DESC"; ORDER BY `serv_targetimages_key` DESC";
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment