diff --git a/app/Services/PlanService.php b/app/Services/PlanService.php index e0e00762..c8e3bd66 100644 --- a/app/Services/PlanService.php +++ b/app/Services/PlanService.php @@ -19,7 +19,7 @@ class PlanService { if ($this->plan->capacity_limit === NULL) return true; $count = self::countActiveUsers(); - $count = $count[$this->plan->plan_id]; + $count = $count[$this->plan->id]; return ($this->plan->capacity_limit - $count) > 0; }