mirror of
https://github.com/MewoLab/AquaDX.git
synced 2025-10-25 12:02:40 +00:00
[F] Fix account card linking
This commit is contained in:
parent
4f05365da3
commit
25edbf06c7
@ -96,7 +96,10 @@ class CardController(
|
||||
val card = cardService.tryLookup(cardId) ?: (404 - "Card not found")
|
||||
|
||||
// If the card is not bound to the user
|
||||
if (card.aquaUser != u) 400 - "Card not bound to user"
|
||||
if (card.aquaUser != u) 400 - "Card not linked to user"
|
||||
|
||||
// Ghost cards cannot be unlinked
|
||||
if (card.isGhost) 400 - "Account virtual cards cannot be unlinked"
|
||||
|
||||
// Unbind the card
|
||||
card.aquaUser = null
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user