mirror of
				https://github.com/v2board/v2board.git
				synced 2025-10-31 01:11:46 +08:00 
			
		
		
		
	update: package limit
This commit is contained in:
		| @@ -18,7 +18,8 @@ class PlanService | ||||
|     public function haveCapacity(): bool | ||||
|     { | ||||
|         if ($this->plan->capacity_limit === NULL) return true; | ||||
|         $count = User::where('plan_id', $this->plan->plan_id)->count(); | ||||
|         $count = self::countActiveUsers(); | ||||
|         $count = $count[$this->plan->plan_id]; | ||||
|         return ($this->plan->capacity_limit - $count) > 0; | ||||
|     } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user