diff --git a/src/Controller/InboxController.php b/src/Controller/InboxController.php index 0d07fb9..4ed1845 100644 --- a/src/Controller/InboxController.php +++ b/src/Controller/InboxController.php @@ -39,9 +39,17 @@ class InboxController extends AppController 'filters' => $this->filterFields, 'quickFilters' => $this->quickFilterFields, 'contextFilters' => [ - 'fields' => [ - 'scope', - ] + 'custom' => [ + [ + 'default' => true, + 'label' => __('My Notifications'), + 'filterConditionFunction' => function ($query) { + return $query->where([ + 'user_id' => $this->ACL->getUser()['id'], + ]); + } + ], + ], ], 'contain' => $this->containFields ]);