X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/b401022733a9645ed701522585b2d57db936f5cc..7de2f8d9b856867cc548029c54e7e2db2290d42b:/mobile/tasks.php diff --git a/mobile/tasks.php b/mobile/tasks.php index 1e8b40a7..9ad18a17 100644 --- a/mobile/tasks.php +++ b/mobile/tasks.php @@ -30,14 +30,19 @@ require_once('../initialize.php'); import('form.Form'); import('ttTeamHelper'); -// Access check. -if (!ttAccessAllowed('manage_tasks') || MODE_PROJECTS_AND_TASKS != $user->tracking_mode) { +// Access checks. +if (!ttAccessAllowed('manage_tasks')) { header('Location: access_denied.php'); exit(); } +if (MODE_PROJECTS_AND_TASKS != $user->tracking_mode) { + header('Location: feature_disabled.php'); + exit(); +} +// End of access checks. -$smarty->assign('active_tasks', ttTeamHelper::getActiveTasks($user->team_id)); -$smarty->assign('inactive_tasks', ttTeamHelper::getInactiveTasks($user->team_id)); -$smarty->assign('title', $i18n->getKey('title.tasks')); +$smarty->assign('active_tasks', ttTeamHelper::getActiveTasks($user->group_id)); +$smarty->assign('inactive_tasks', ttTeamHelper::getInactiveTasks($user->group_id)); +$smarty->assign('title', $i18n->get('title.tasks')); $smarty->assign('content_page_name', 'mobile/tasks.tpl'); $smarty->display('mobile/index.tpl');