From 56e9b4e97ac8d0e0526da08b953caf8b795b3a19 Mon Sep 17 00:00:00 2001 From: Jaybe Date: Wed, 12 Nov 2025 19:47:01 +0900 Subject: [PATCH] =?UTF-8?q?=EC=B5=9C=EB=8C=80=ED=97=88=EC=9A=A9=EC=9D=B8?= =?UTF-8?q?=EC=9B=90=20=EC=A1=B0=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/controllers/publicController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/controllers/publicController.js b/backend/controllers/publicController.js index 94dddbd..a675084 100644 --- a/backend/controllers/publicController.js +++ b/backend/controllers/publicController.js @@ -366,7 +366,7 @@ exports.addPublicGuest = async (req, res) => { // 회원 수가 최대치를 초과하는 경우 if (clubSubscription.SubscriptionPlan) { const maxMembers = clubSubscription.SubscriptionPlan.maxMembers; - if (memberCount >= maxMembers) { + if (maxMembers > 0 && memberCount >= maxMembers) { return res.status(403).json({ message: `회원 수가 구독 플랜의 최대 허용 인원(${maxMembers}명)을 초과했습니다. 구독 업그레이드가 필요합니다.` });