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:
@@ -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]:
|
||||
|
||||
Reference in New Issue
Block a user