X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=mobile%2Ftasks.php;h=25575eb65104b296aa9c09d1d1e9446f5d0a90cc;hb=030d2c3ffbf8229cc945427e9e9f7704226effe1;hp=9b778bbf486443e3ab1cca077a69f15514eac227;hpb=ee49ee74b2a7d3c6daaa2d4bc6397b0c89e3099b;p=timetracker.git diff --git a/mobile/tasks.php b/mobile/tasks.php index 9b778bbf..25575eb6 100644 --- a/mobile/tasks.php +++ b/mobile/tasks.php @@ -31,13 +31,13 @@ import('form.Form'); import('ttTeamHelper'); // Access check. -if (!ttAccessCheck(right_manage_team)) { +if (!ttAccessAllowed('manage_tasks') || MODE_PROJECTS_AND_TASKS != $user->tracking_mode) { header('Location: access_denied.php'); exit(); } $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('title', $i18n->get('title.tasks')); $smarty->assign('content_page_name', 'mobile/tasks.tpl'); $smarty->display('mobile/index.tpl');