X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/e4fd9dd2dc0e3920d001b52e325b47fe0c9c65a3..d9ef3e94c49d9b5e8c7532efc8b460c3e1135fdd:/mobile/projects.php diff --git a/mobile/projects.php b/mobile/projects.php index 5dee3605..93261d42 100644 --- a/mobile/projects.php +++ b/mobile/projects.php @@ -30,11 +30,15 @@ require_once('../initialize.php'); import('form.Form'); import('ttTeamHelper'); -// Access check. -if (!ttAccessCheck(right_data_entry) || (MODE_PROJECTS != $user->tracking_mode && MODE_PROJECTS_AND_TASKS != $user->tracking_mode)) { +// Access checks. +if (!(ttAccessAllowed('track_own_time') || ttAccessAllowed('track_time'))) { header('Location: access_denied.php'); exit(); } +if (MODE_PROJECTS != $user->tracking_mode && MODE_PROJECTS_AND_TASKS != $user->tracking_mode) { + header('Location: feature_disabled.php'); + exit(); +} if($user->canManageTeam()) { $active_projects = ttTeamHelper::getActiveProjects($user->team_id); @@ -44,6 +48,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');