From e9fedf3e5cd63aea4da7a71f6647ee427c62fa49 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 5 Dec 2015 20:31:27 -0500 Subject: Rewrite of the authentication and authorization system --- app/Template/task/layout.php | 2 +- app/Template/task/show.php | 5 ++++- app/Template/task/sidebar.php | 2 ++ 3 files changed, 7 insertions(+), 2 deletions(-) (limited to 'app/Template/task') diff --git a/app/Template/task/layout.php b/app/Template/task/layout.php index 6b6e827a..0ceb9706 100644 --- a/app/Template/task/layout.php +++ b/app/Template/task/layout.php @@ -9,7 +9,7 @@ url->link(t('Back to the calendar'), 'calendar', 'show', array('project_id' => $task['project_id'])) ?> - user->isProjectManagementAllowed($task['project_id'])): ?> + user->hasProjectAccess('project', 'edit', $task['project_id'])): ?>
  • url->link(t('Project settings'), 'project', 'show', array('project_id' => $task['project_id'])) ?> 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(), )) ?> -render('task_modification/edit_time', array('task' => $task, 'values' => $values, 'date_format' => $date_format, 'date_formats' => $date_formats)) ?> +user->hasProjectAccess('taskmodification', 'edit', $project['id'])): ?> + render('task_modification/edit_time', array('task' => $task, 'values' => $values, 'date_format' => $date_format, 'date_formats' => $date_formats)) ?> + + render('task/description', array('task' => $task)) ?> render('tasklink/show', array('task' => $task, 'links' => $links, 'link_label_list' => $link_label_list)) ?> render('subtask/show', array('task' => $task, 'subtasks' => $subtasks, 'project' => $project, 'users_list' => isset($users_list) ? $users_list : array())) ?> diff --git a/app/Template/task/sidebar.php b/app/Template/task/sidebar.php index 9ee1e7df..d994aad3 100644 --- a/app/Template/task/sidebar.php +++ b/app/Template/task/sidebar.php @@ -21,6 +21,7 @@ hook->render('template:task:sidebar:information') ?> + user->hasProjectAccess('taskmodification', 'edit', $task['project_id'])): ?>

    + -- cgit v1.2.3