X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=mobile%2Fprojects.php;h=5dec7ee363aefe28110290991c20f1eb236e5973;hb=a8334a66f49ce583f575ec1b4a71c7d746a1bcdc;hp=0a9c490c5ffcfa7e8eab5781f9462aeda7915c9f;hpb=b401022733a9645ed701522585b2d57db936f5cc;p=timetracker.git diff --git a/mobile/projects.php b/mobile/projects.php index 0a9c490c..5dec7ee3 100644 --- a/mobile/projects.php +++ b/mobile/projects.php @@ -31,7 +31,7 @@ import('form.Form'); import('ttTeamHelper'); // Access check. -if (!ttAccessAllowed('data_entry') || (MODE_PROJECTS != $user->tracking_mode && MODE_PROJECTS_AND_TASKS != $user->tracking_mode)) { +if (!ttAccessAllowed('track_own_time') || (MODE_PROJECTS != $user->tracking_mode && MODE_PROJECTS_AND_TASKS != $user->tracking_mode)) { header('Location: access_denied.php'); exit(); } @@ -44,6 +44,6 @@ if($user->canManageTeam()) { $smarty->assign('active_projects', $active_projects); $smarty->assign('inactive_projects', $inactive_projects); -$smarty->assign('title', $i18n->getKey('title.projects')); +$smarty->assign('title', $i18n->get('title.projects')); $smarty->assign('content_page_name', 'mobile/projects.tpl'); $smarty->display('mobile/index.tpl');