People should not see any tasks during a search when they are not associated to a project

This commit is contained in:
Frederic Guillot
2015-10-23 19:57:43 -04:00
parent 9707c0b4c4
commit ffeffa54f9
3 changed files with 11 additions and 2 deletions

View File

@@ -22,7 +22,7 @@ class Search extends Base
->setOrder('tasks.id')
->setDirection('DESC');
if ($search !== '') {
if ($search !== '' && ! empty($projects)) {
$query = $this
->taskFilter
->search($search)