fix: scopes alerts to user session
This commit is contained in:
@@ -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 [];
|
||||
|
||||
Reference in New Issue
Block a user