Restrict actions for project viewers
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
'recurrence_trigger_list' => $this->task->recurrenceTriggers(),
|
||||
'recurrence_timeframe_list' => $this->task->recurrenceTimeframes(),
|
||||
'recurrence_basedate_list' => $this->task->recurrenceBasedates(),
|
||||
'editable' => $this->user->hasProjectAccess('taskmodification', 'edit', $project['id']),
|
||||
)) ?>
|
||||
|
||||
<?php if ($this->user->hasProjectAccess('taskmodification', 'edit', $project['id'])): ?>
|
||||
@@ -11,8 +12,34 @@
|
||||
<?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())) ?>
|
||||
|
||||
<?= $this->render('tasklink/show', array(
|
||||
'task' => $task,
|
||||
'links' => $links,
|
||||
'link_label_list' => $link_label_list,
|
||||
'editable' => $this->user->hasProjectAccess('tasklink', 'edit', $project['id']),
|
||||
'is_public' => false,
|
||||
)) ?>
|
||||
|
||||
<?= $this->render('subtask/show', array(
|
||||
'task' => $task,
|
||||
'subtasks' => $subtasks,
|
||||
'project' => $project,
|
||||
'users_list' => isset($users_list) ? $users_list : array(),
|
||||
'editable' => $this->user->hasProjectAccess('subtask', 'edit', $project['id']),
|
||||
)) ?>
|
||||
|
||||
<?= $this->render('task/time_tracking_summary', array('task' => $task)) ?>
|
||||
<?= $this->render('file/show', array('task' => $task, 'files' => $files, 'images' => $images)) ?>
|
||||
<?= $this->render('task/comments', array('task' => $task, 'comments' => $comments, 'project' => $project)) ?>
|
||||
|
||||
<?= $this->render('file/show', array(
|
||||
'task' => $task,
|
||||
'files' => $files,
|
||||
'images' => $images
|
||||
)) ?>
|
||||
|
||||
<?= $this->render('task/comments', array(
|
||||
'task' => $task,
|
||||
'comments' => $comments,
|
||||
'project' => $project,
|
||||
'editable' => $this->user->hasProjectAccess('comment', 'edit', $project['id']),
|
||||
)) ?>
|
||||
|
||||
Reference in New Issue
Block a user