summaryrefslogtreecommitdiffstats
path: root/lib/Controller
diff options
context:
space:
mode:
authorMarco Nassabain <marco.nassabain@hotmail.com>2021-02-24 23:07:17 +0100
committerSean Molenaar <SMillerDev@users.noreply.github.com>2021-04-08 22:31:21 +0200
commit7e1a0b47cf369f33eedfbd628dea40fd8589a97b (patch)
tree3980a03d1677b570d589c8b75beb552590f3c51e /lib/Controller
parentd63e999d9378d520093e3c6a985fee2a6ed5bf2e (diff)
✨ ItemController (index): add case for shared items
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
Diffstat (limited to 'lib/Controller')
-rw-r--r--lib/Controller/ItemController.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/Controller/ItemController.php b/lib/Controller/ItemController.php
index 7eeaa26ed..7ebe48b69 100644
--- a/lib/Controller/ItemController.php
+++ b/lib/Controller/ItemController.php
@@ -162,6 +162,17 @@ class ItemController extends Controller
$search_items
);
break;
+ case ListType::SHARED:
+ $items = $this->itemService->findAllSharedWithUserWithFilters(
+ $this->getUserId(),
+ $limit,
+ $offset,
+ !$showAll,
+ $oldestFirst,
+ $search_items
+ );
+ break;
+
default:
$items = $this->itemService->findAllWithFilters(
$this->getUserId(),