feat(abonnement): page /compte/abonnement + accès premium réel (#90)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DRGb8NAMwaTZxUszSbaj4N
This commit is contained in:
Colin Maudry
2026-06-25 19:08:22 +02:00
parent 3d1cb69463
commit d3025e323b
4 changed files with 212 additions and 10 deletions
+5 -2
View File
@@ -39,8 +39,11 @@ SECTIONS = [
def current_user_has_subscription() -> bool:
"""Stub : à brancher sur la facturation (issue #73)."""
return False
from src.subscriptions import db
if not current_user.is_authenticated:
return False
return db.has_active_subscription(current_user.id)
def visible_sections(has_subscription: bool) -> list[dict]: