projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Initial implementation of role editor.
[timetracker.git]
/
task_edit.php
diff --git
a/task_edit.php
b/task_edit.php
index
943e9a9
..
5c70f11
100644
(file)
--- a/
task_edit.php
+++ b/
task_edit.php
@@
-32,7
+32,7
@@
import('ttTeamHelper');
import('ttTaskHelper');
// Access check.
import('ttTaskHelper');
// Access check.
-if (!ttAccess
Check(right_manage_team)
) {
+if (!ttAccess
Allowed('manage_tasks') || MODE_PROJECTS_AND_TASKS != $user->tracking_mode
) {
header('Location: access_denied.php');
exit();
}
header('Location: access_denied.php');
exit();
}
@@
-46,7
+46,7
@@
if ($request->isPost()) {
$cl_status = $request->getParameter('status');
$cl_projects = $request->getParameter('projects');
} else {
$cl_status = $request->getParameter('status');
$cl_projects = $request->getParameter('projects');
} else {
- $task = ttTaskHelper::get
Task
($cl_task_id);
+ $task = ttTaskHelper::get($cl_task_id);
$cl_name = $task['name'];
$cl_description = $task['description'];
$cl_status = $task['status'];
$cl_name = $task['name'];
$cl_description = $task['description'];
$cl_status = $task['status'];