fix: muestra fallo real al ligar permisos y reconfirma persistencia #10
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix/permisos-no-persisten-uq-constraint"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
togglePermission confiaba solo en res.ok de un fetch sin use:enhance, así que
ocultaba el fail(500) del action y pintaba "Con Acceso" en falso aunque el
INSERT tronara (42P10 por falta de UNIQUE en a24c).
valida type === 'success', relee del servidor y muestra error si falla
Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com