projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improvements to group editor - access checks and usability.
[timetracker.git]
/
mobile
/
task_add.php
diff --git
a/mobile/task_add.php
b/mobile/task_add.php
index
9deed92
..
db73d1c
100644
(file)
--- a/
mobile/task_add.php
+++ b/
mobile/task_add.php
@@
-28,8
+28,7
@@
require_once('../initialize.php');
import('form.Form');
require_once('../initialize.php');
import('form.Form');
-import('form.ActionForm');
-import('ttTeamHelper');
+import('ttGroupHelper');
import('ttTaskHelper');
// Access checks.
import('ttTaskHelper');
// Access checks.
@@
-37,13
+36,13
@@
if (!ttAccessAllowed('manage_tasks')) {
header('Location: access_denied.php');
exit();
}
header('Location: access_denied.php');
exit();
}
-if (MODE_PROJECTS_AND_TASKS != $user->
tracking_mode
) {
+if (MODE_PROJECTS_AND_TASKS != $user->
getTrackingMode()
) {
header('Location: feature_disabled.php');
exit();
}
// End of access checks.
header('Location: feature_disabled.php');
exit();
}
// End of access checks.
-$projects = tt
TeamHelper::getActiveProjects($user->group_id
);
+$projects = tt
GroupHelper::getActiveProjects(
);
if ($request->isPost()) {
$cl_name = trim($request->getParameter('name'));
if ($request->isPost()) {
$cl_name = trim($request->getParameter('name'));