Skip to content

Commit a3e8755

Browse files
committed
fix:allow foreign label deletion
Signed-off-by: grnd-alt <github@belakkaf.net>
1 parent af99211 commit a3e8755

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

lib/Service/CardService.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -652,9 +652,6 @@ public function removeLabel($cardId, $labelId) {
652652
throw new StatusException('Operation not allowed. This card is archived.');
653653
}
654654
$label = $this->labelMapper->find($labelId);
655-
if ($label->getBoardId() !== $this->cardMapper->findBoardId($card->getId())) {
656-
throw new StatusException('Operation not allowed. Label does not exist.');
657-
}
658655
$this->cardMapper->removeLabel($cardId, $labelId);
659656
$this->changeHelper->cardChanged($cardId);
660657
$this->activityManager->triggerEvent(ActivityManager::DECK_OBJECT_CARD, $card, ActivityManager::SUBJECT_LABEL_UNASSING, ['label' => $label]);

0 commit comments

Comments
 (0)