Fixes for hosted

This commit is contained in:
David Bomba 2022-07-22 11:00:29 +10:00
parent 42a286fde1
commit 974d614075

View File

@ -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()