summaryrefslogtreecommitdiff
path: root/app/Template/task/show.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Template/task/show.php')
-rw-r--r--app/Template/task/show.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/Template/task/show.php b/app/Template/task/show.php
index 68d63c58..713c2b3a 100644
--- a/app/Template/task/show.php
+++ b/app/Template/task/show.php
@@ -6,7 +6,10 @@
'recurrence_basedate_list' => $this->task->recurrenceBasedates(),
)) ?>
-<?= $this->render('task_modification/edit_time', array('task' => $task, 'values' => $values, 'date_format' => $date_format, 'date_formats' => $date_formats)) ?>
+<?php if ($this->user->hasProjectAccess('taskmodification', 'edit', $project['id'])): ?>
+ <?= $this->render('task_modification/edit_time', array('task' => $task, 'values' => $values, 'date_format' => $date_format, 'date_formats' => $date_formats)) ?>
+<?php endif ?>
+
<?= $this->render('task/description', array('task' => $task)) ?>
<?= $this->render('tasklink/show', array('task' => $task, 'links' => $links, 'link_label_list' => $link_label_list)) ?>
<?= $this->render('subtask/show', array('task' => $task, 'subtasks' => $subtasks, 'project' => $project, 'users_list' => isset($users_list) ? $users_list : array())) ?>