df
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user