People should not see any tasks during a search when they are not associated to a project
This commit is contained in:
@@ -22,7 +22,7 @@ class Search extends Base
|
||||
->setOrder('tasks.id')
|
||||
->setDirection('DESC');
|
||||
|
||||
if ($search !== '') {
|
||||
if ($search !== '' && ! empty($projects)) {
|
||||
$query = $this
|
||||
->taskFilter
|
||||
->search($search)
|
||||
|
||||
Reference in New Issue
Block a user