From 875f2f754b0f5cc320273a005e9ae15d98381046 Mon Sep 17 00:00:00 2001 From: Eike Foken Date: Fri, 16 Sep 2011 15:16:03 +0200 Subject: [PATCH] Show only accessible projects in header selection --- application/views/header.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/application/views/header.php b/application/views/header.php index 212d214..ebc86a6 100644 --- a/application/views/header.php +++ b/application/views/header.php @@ -51,7 +51,12 @@ project->getAll() as $project): + if ($this->access->isAdmin()) { + $theProjects = $this->project->getAll(); + } else { + $theProjects = $this->project->getAccessible(); + } + foreach ($theProjects as $project): ?>