Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[Timepoint List] Hide visits that are from user unaffiliated projects #8723

4 changes: 3 additions & 1 deletion modules/timepoint_list/php/timepoint_list.class.inc
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,9 @@ class Timepoint_List extends \NDB_Menu
$listOfTimePoints = array_filter(
$listOfTimePoints,
function ($timePoint) use ($user) {
return $timePoint->isAccessibleBy($user);
return
$timePoint->isAccessibleBy($user)
&& $user->hasProject($timePoint->getProjectID());
zaliqarosli marked this conversation as resolved.
Show resolved Hide resolved
}
);
}
Expand Down