This commit is contained in:
2026-04-23 11:21:39 +02:00
parent 41f6d0dd43
commit fcbb053f72
4 changed files with 2 additions and 6 deletions

View File

@@ -293,8 +293,9 @@ extension CompanyLimits on CompanyModel {
bool get hasActiveAccess {
// 1. Priorità all'override manuale (is_paid e payment_expiration)
if (isPaid) {
if (paymentExpiration == null)
if (paymentExpiration == null) {
return true; // Pagato "a vita" o senza scadenza
}
if (DateTime.now().isBefore(paymentExpiration!)) return true;
}