diff options
author | Marco Nassabain <marco.nassabain@hotmail.com> | 2021-02-24 23:07:17 +0100 |
---|---|---|
committer | Sean Molenaar <SMillerDev@users.noreply.github.com> | 2021-04-08 22:31:21 +0200 |
commit | 7e1a0b47cf369f33eedfbd628dea40fd8589a97b (patch) | |
tree | 3980a03d1677b570d589c8b75beb552590f3c51e | |
parent | d63e999d9378d520093e3c6a985fee2a6ed5bf2e (diff) |
✨ ItemController (index): add case for shared items
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
-rw-r--r-- | lib/Controller/ItemController.php | 11 |
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(), |