feat: bypass user limit validation to allow unlimited agents

This commit is contained in:
Rodrigo Borba 2026-02-25 21:40:18 -03:00
parent 05d87281cd
commit 389cbcbb61
2 changed files with 2 additions and 6 deletions

View File

@ -9,8 +9,6 @@ module Enterprise::Concerns::User
end
def ensure_installation_pricing_plan_quantity
return unless ChatwootHub.pricing_plan == 'premium'
errors.add(:base, 'User limit reached. Please purchase more licenses from super admin') if User.count >= ChatwootHub.pricing_plan_quantity
true
end
end

View File

@ -23,9 +23,7 @@ class ChatwootHub
end
def self.pricing_plan_quantity
return 0 unless ChatwootApp.enterprise?
InstallationConfig.find_by(name: 'INSTALLATION_PRICING_PLAN_QUANTITY')&.value || 0
1000
end
def self.support_config