summaryrefslogtreecommitdiff
path: root/app/Controller/Search.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-10-23 19:57:43 -0400
committerFrederic Guillot <fred@kanboard.net>2015-10-23 19:57:43 -0400
commitffeffa54f9ad322e8b1a79d9ab5270854d712ea2 (patch)
treef6808b61caa92e1689982c927d149132e84e1f8b /app/Controller/Search.php
parent9707c0b4c4145b9fbdab3a2ecb40c92633dacab1 (diff)
People should not see any tasks during a search when they are not associated to a project
Diffstat (limited to 'app/Controller/Search.php')
-rw-r--r--app/Controller/Search.php2
1 files changed, 1 insertions, 1 deletions
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)