mirror of
https://github.com/DRYTRIX/TimeTracker.git
synced 2026-05-19 12:50:11 -05:00
8bb42ddd02
- 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
13 lines
475 B
Python
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))
|