projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed typos.
[timetracker.git]
/
mobile
/
projects.php
diff --git
a/mobile/projects.php
b/mobile/projects.php
index
0a9c490
..
93261d4
100644
(file)
--- a/
mobile/projects.php
+++ b/
mobile/projects.php
@@
-30,11
+30,15
@@
require_once('../initialize.php');
import('form.Form');
import('ttTeamHelper');
import('form.Form');
import('ttTeamHelper');
-// Access check.
-if (!
ttAccessAllowed('data_entry') || (MODE_PROJECTS != $user->tracking_mode && MODE_PROJECTS_AND_TASKS != $user->tracking_mode
)) {
+// Access check
s
.
+if (!
(ttAccessAllowed('track_own_time') || ttAccessAllowed('track_time')
)) {
header('Location: access_denied.php');
exit();
}
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);
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('active_projects', $active_projects);
$smarty->assign('inactive_projects', $inactive_projects);
-$smarty->assign('title', $i18n->get
Key
('title.projects'));
+$smarty->assign('title', $i18n->get('title.projects'));
$smarty->assign('content_page_name', 'mobile/projects.tpl');
$smarty->display('mobile/index.tpl');
$smarty->assign('content_page_name', 'mobile/projects.tpl');
$smarty->display('mobile/index.tpl');