Skip to content

Commit

Permalink
TTK-27023: Add condition to enable filter
Browse files Browse the repository at this point in the history
  • Loading branch information
albacodina committed Jul 4, 2024
1 parent 7be2bbc commit 73a9122
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Controller/PaellaRepositoryController.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ public function indexAction(Request $request, string $id): Response

$multimediaObject = $this->getMultimediaObject($id);

$this->documentManager->getFilterCollection()->enable('personal');
if (!$this->documentManager->getFilterCollection()->isEnabled('personal')) {
$this->documentManager->getFilterCollection()->enable('personal');
}

if ($multimediaObject instanceof MultimediaObject) {
if ($multimediaObject->isLive()) {
Expand Down

0 comments on commit 73a9122

Please sign in to comment.