Models refactoring/improvements
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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,
|
||||
)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user