diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-09-20 14:49:31 +0200 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-09-20 14:49:31 +0200 |
commit | 41e796c52aa693d13636b54efe15705eaec27f3f (patch) | |
tree | bc670e457e98c1d8a9ac8e2b82bf8e2c424af328 /app/Controller | |
parent | 00cdc609d113fedf977da1d55136dc4d699fb308 (diff) |
Models refactoring/improvements
Diffstat (limited to 'app/Controller')
-rw-r--r-- | app/Controller/Base.php | 2 | ||||
-rw-r--r-- | app/Controller/Task.php | 2 | ||||
-rw-r--r-- | app/Controller/User.php | 2 |
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, ))); } |