Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions lib/Controller/CardApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,20 @@ public function removeLabel($labelId) {
* @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);
Expand All @@ -149,7 +156,7 @@ public function assignUser($userId) {
* @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);
Expand Down