From 00cdc609d113fedf977da1d55136dc4d699fb308 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Sat, 20 Sep 2014 12:52:48 +0200 Subject: Extract project permissions to a separate class --- app/Controller/User.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app/Controller/User.php') diff --git a/app/Controller/User.php b/app/Controller/User.php index 72ef521c..504f4aed 100644 --- a/app/Controller/User.php +++ b/app/Controller/User.php @@ -189,7 +189,7 @@ class User extends Base { $user = $this->getUser(); $this->response->html($this->layout('user_show', array( - 'projects' => $this->project->getAvailableList($user['id']), + 'projects' => $this->projectPermission->getAllowedProjects($user['id']), 'user' => $user, ))); } @@ -252,7 +252,7 @@ class User extends Base } $this->response->html($this->layout('user_notifications', array( - 'projects' => $this->project->getAvailableList($user['id']), + 'projects' => $this->projectPermission->getAllowedProjects($user['id']), 'notifications' => $this->notification->readSettings($user['id']), 'user' => $user, ))); @@ -353,7 +353,7 @@ class User extends Base $this->response->html($this->layout('user_edit', array( 'values' => $values, 'errors' => $errors, - 'projects' => $this->project->filterListByAccess($this->project->getList(), $user['id']), + 'projects' => $this->projectPermission->getAllowedProjects($user['id']), 'user' => $user, ))); } -- cgit v1.2.3