From ffeffa54f9ad322e8b1a79d9ab5270854d712ea2 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Fri, 23 Oct 2015 19:57:43 -0400 Subject: People should not see any tasks during a search when they are not associated to a project --- app/Controller/Search.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/Controller/Search.php') diff --git a/app/Controller/Search.php b/app/Controller/Search.php index 08dda1c8..0aff9073 100644 --- a/app/Controller/Search.php +++ b/app/Controller/Search.php @@ -22,7 +22,7 @@ class Search extends Base ->setOrder('tasks.id') ->setDirection('DESC'); - if ($search !== '') { + if ($search !== '' && ! empty($projects)) { $query = $this ->taskFilter ->search($search) -- cgit v1.2.3