summaryrefslogtreecommitdiff
path: root/app/Controller
diff options
context:
space:
mode:
Diffstat (limited to 'app/Controller')
-rw-r--r--app/Controller/Base.php2
-rw-r--r--app/Controller/Task.php2
-rw-r--r--app/Controller/User.php2
3 files changed, 3 insertions, 3 deletions
diff --git a/app/Controller/Base.php b/app/Controller/Base.php
index cc180158..8f822f3d 100644
--- a/app/Controller/Base.php
+++ b/app/Controller/Base.php
@@ -269,7 +269,7 @@ abstract class Base
*/
protected function getTask()
{
- $task = $this->task->getById($this->request->getIntegerParam('task_id'), true);
+ $task = $this->task->getDetails($this->request->getIntegerParam('task_id'));
if (! $task) {
$this->notfound();
diff --git a/app/Controller/Task.php b/app/Controller/Task.php
index 5de25a0e..eddb61d5 100644
--- a/app/Controller/Task.php
+++ b/app/Controller/Task.php
@@ -60,7 +60,7 @@ class Task extends Base
$this->forbidden(true);
}
- $task = $this->task->getById($this->request->getIntegerParam('task_id'), true);
+ $task = $this->task->getDetails($this->request->getIntegerParam('task_id'));
if (! $task) {
$this->notfound(true);
diff --git a/app/Controller/User.php b/app/Controller/User.php
index 504f4aed..c94c2c88 100644
--- a/app/Controller/User.php
+++ b/app/Controller/User.php
@@ -353,7 +353,7 @@ class User extends Base
$this->response->html($this->layout('user_edit', array(
'values' => $values,
'errors' => $errors,
- 'projects' => $this->projectPermission->getAllowedProjects($user['id']),
+ 'projects' => $this->projectPermission->filterProjects($this->project->getList(), $user['id']),
'user' => $user,
)));
}