diff --git a/htdocs/webportal/public/class/html.formlistwebportal.class.php b/htdocs/webportal/public/class/html.formlistwebportal.class.php
index d125304b7b3..5d5a0b6fc9d 100644
--- a/htdocs/webportal/public/class/html.formlistwebportal.class.php
+++ b/htdocs/webportal/public/class/html.formlistwebportal.class.php
@@ -299,8 +299,8 @@ class FormListWebPortal
} else {
$sql .= " WHERE 1 = 1";
}
- // TODO : filter on logged third-party
- //$sql .= " AND t.fk_soc = " . (int) $context->logged_thirdparty->id;
+ // filter on logged third-party
+ $sql .= " AND t.fk_soc = " . (int) $context->logged_thirdparty->id;
foreach ($search as $key => $val) {
if (array_key_exists($key, $object->fields)) {
if (($key == 'status' || $key == 'fk_statut') && $search[$key] == $emptyValueKey) {