Add missing subtask permissions for project viewer role

This commit is contained in:
Frederic Guillot
2017-06-18 22:16:55 -04:00
parent e70f904ed4
commit ec5ec2ea81
3 changed files with 7 additions and 2 deletions

View File

@@ -18,7 +18,7 @@
'task' => $task,
'subtasks' => $subtasks,
'project' => $project,
'editable' => true,
'editable' => $this->user->hasProjectAccess('SubtaskController', 'edit', $project['id']),
)) ?>
<?php endif ?>
@@ -29,7 +29,7 @@
'links' => $internal_links,
'project' => $project,
'link_label_list' => $link_label_list,
'editable' => true,
'editable' => $this->user->hasProjectAccess('TaskInternalLinkController', 'edit', $project['id']),
'is_public' => false,
)) ?>
<?php endif ?>