mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixes for hosted
This commit is contained in:
parent
42a286fde1
commit
974d614075
@ -227,6 +227,9 @@ class Account extends BaseModel
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if($this->plan_expires && Carbon::parse($this->plan_expires)->lt(now()))
|
||||||
|
return false;
|
||||||
|
|
||||||
return $this->plan == 'pro' || $this->plan == 'enterprise';
|
return $this->plan == 'pro' || $this->plan == 'enterprise';
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -236,7 +239,10 @@ class Account extends BaseModel
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->plan == 'free' || is_null($this->plan);
|
if($this->plan_expires && Carbon::parse($this->plan_expires)->lt(now()))
|
||||||
|
return true;
|
||||||
|
|
||||||
|
return $this->plan == 'free' || is_null($this->plan) || empty($this->plan);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function isEnterpriseClient()
|
public function isEnterpriseClient()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user