New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: Validation for purchased pricing_plan_quantity #8809
chore: Validation for purchased pricing_plan_quantity #8809
Conversation
sojan-official
commented
Jan 29, 2024
- Add validations based on purchased pricing_plan_quantity
- modify dashboard to support the new error message
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For existing accounts with user.count
> pricing_plan_quantity
, this would immediately disable adding new agents, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is correct. Only if they are on the premium plan.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |