Acl refactoring

This commit is contained in:
Frédéric Guillot
2014-12-31 12:37:15 -05:00
parent 66f150d887
commit 772804add8
93 changed files with 943 additions and 626 deletions

View File

@@ -11,7 +11,7 @@ use Pimple\Container;
* @package action
* @author Frederic Guillot
*
* @property \Model\Acl $acl
* @property \Model\UserSession $userSession
* @property \Model\Comment $comment
* @property \Model\Task $task
* @property \Model\TaskCreation $taskCreation

View File

@@ -62,13 +62,13 @@ class TaskAssignCurrentUser extends Base
*/
public function doAction(array $data)
{
if (! $this->acl->isLogged()) {
if (! $this->userSession->isLogged()) {
return false;
}
$values = array(
'id' => $data['task_id'],
'owner_id' => $this->acl->getUserId(),
'owner_id' => $this->userSession->getId(),
);
return $this->taskModification->update($values);