fix: scopes alerts to user session

This commit is contained in:
2025-05-12 22:04:10 -05:00
parent 4653feb123
commit 217a667df2
6 changed files with 20 additions and 11 deletions

View File

@@ -22,9 +22,9 @@ final class DownloadList extends AbstractController
public function getDownloads()
{
if ($this->type === "active") {
return $this->downloadRepository->getActivePaginated();
return $this->downloadRepository->getActivePaginated($this->getUser());
} elseif ($this->type === "complete") {
return $this->downloadRepository->getCompletePaginated();
return $this->downloadRepository->getCompletePaginated($this->getUser());
}
return [];