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}명)을 초과했습니다. 구독 업그레이드가 필요합니다.` });