From b72d1c82a9af4c1476dbb0001ef407960dd155b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Wed, 13 Mar 2019 17:24:13 +0100 Subject: [PATCH] Add proper annotations for assignUser MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- lib/Controller/CardApiController.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/lib/Controller/CardApiController.php b/lib/Controller/CardApiController.php index be68dc45f..2c8702745 100644 --- a/lib/Controller/CardApiController.php +++ b/lib/Controller/CardApiController.php @@ -132,13 +132,20 @@ class CardApiController extends ApiController { * @CORS * @NoCSRFRequired * - * Unassign a label to a card. + * Unassign a user from a card */ public function unassignUser($userId) { $card = $this->cardService->unassignUser($this->request->getParam('cardId'), $userId); return new DataResponse($card, HTTP::STATUS_OK); } + /** + * @NoAdminRequired + * @CORS + * @NoCSRFRequired + * + * Assign a user to a card + */ public function assignUser($userId) { $card = $this->cardService->assignUser($this->request->getParam('cardId'), $userId);; return new DataResponse($card, HTTP::STATUS_OK); @@ -149,7 +156,7 @@ class CardApiController extends ApiController { * @CORS * @NoCSRFRequired * - * Unassign a label to a card. + * Reorder cards */ public function reorder($stackId, $order) { $card = $this->cardService->reorder($this->request->getParam('cardId'), $stackId, $order);