chg: [inbox:index] Changed quick filter to show `my notification` by default

pull/121/head
Sami Mokaddem 2022-10-25 10:24:01 +02:00
parent 745340adff
commit 726dab255e
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 11 additions and 3 deletions

View File

@ -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
]);