Files
TimeTracker/app/utils/license_utils.py
T
Dries Peeters 8bb42ddd02 feat(app): recurring invoices, gantt/reporting services, license UI
- Add RecurringInvoiceRepository and RecurringInvoiceService; refactor recurring_invoice model
- Add GanttService and move gantt logic from route to service
- Expand ReportingService and simplify reports route
- Add license_utils and user license template/settings
- Refactor routes to use scope_filter, api_responses, and services (API v1, timer, admin, invoices, etc.)
- Extend invoice_service for recurring; cache and scope_filter utils; base/template updates
2026-03-15 09:37:00 +01:00

13 lines
475 B
Python

"""
Optional support/license visibility helpers.
Instance-level "license activated" state is represented by Settings.donate_ui_hidden
(set when a user verifies the donate-hide / license key). This is non-blocking
monetization awareness only—no paywall or feature gating.
"""
def is_license_activated(settings) -> bool:
"""Return True if this instance has an active license (donate/support UI hidden)."""
return bool(getattr(settings, "donate_ui_hidden", False))