From 2d66f70a49da144c4bc9c856ebb3b9805cf922ad Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 26 Mar 2016 18:05:18 -0400 Subject: Show only necessary menus for viewers --- app/Template/listing/show.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'app/Template/listing/show.php') diff --git a/app/Template/listing/show.php b/app/Template/listing/show.php index c7887ebd..98b9528a 100644 --- a/app/Template/listing/show.php +++ b/app/Template/listing/show.php @@ -18,7 +18,11 @@ getCollection() as $task): ?> - render('task/dropdown', array('task' => $task)) ?> + user->hasProjectAccess('taskmodification', 'edit', $task['project_id'])): ?> + render('task/dropdown', array('task' => $task)) ?> + + # + text->e($task['swimlane_name'] ?: $task['default_swimlane']) ?> -- cgit v1.2.3