diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-12-31 12:37:15 -0500 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-12-31 12:37:15 -0500 |
commit | 772804add8095eea9b3ec2a832c2f82fbb9a6fd5 (patch) | |
tree | 782a414d15f9091d04bcf3960a957f952958e548 /app/Controller/App.php | |
parent | 66f150d887a34d2b51ff14f22d0fd41a34f8cc77 (diff) |
Acl refactoring
Diffstat (limited to 'app/Controller/App.php')
-rw-r--r-- | app/Controller/App.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/app/Controller/App.php b/app/Controller/App.php index 87b4ccbe..aa2673a1 100644 --- a/app/Controller/App.php +++ b/app/Controller/App.php @@ -34,7 +34,7 @@ class App extends Base $direction = $this->request->getStringParam('direction'); $order = $this->request->getStringParam('order'); - $user_id = $this->acl->getUserId(); + $user_id = $this->userSession->getId(); $projects = $this->projectPermission->getMemberProjects($user_id); $project_ids = array_keys($projects); @@ -191,8 +191,9 @@ class App extends Base $this->response->html('<p>'.t('Nothing to preview...').'</p>'); } else { - $this->response->html($this->template->markdown($payload['text'])); + $this->response->html( + $this->template->markdown($payload['text']) + ); } } - } |