From 1fa72295f20aa9794f1b33dfde95960c34d85366 Mon Sep 17 00:00:00 2001 From: Timo Litzbarski Date: Fri, 18 Sep 2015 14:18:34 +0000 Subject: User-Api: add getMyPorjects (#1233) --- app/Api/Me.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'app/Api/Me.php') diff --git a/app/Api/Me.php b/app/Api/Me.php index bc721c09..ff317557 100644 --- a/app/Api/Me.php +++ b/app/Api/Me.php @@ -57,4 +57,9 @@ class Me extends Base { return $this->taskFinder->getOverdueTasksByUser($this->userSession->getId()); } + + public function getMyProjects() + { + return $this->formatProjects($this->project->getAllByIds($this->projectPermission->getActiveMemberProjectIds($this->userSession->getId()))); + } } -- cgit v1.2.3