mirror of
https://github.com/discourse/discourse.git
synced 2025-06-03 02:48:28 +08:00
DEV: set limits for text fields on groups
This commit is contained in:

committed by
Loïc Guitaut

parent
2ccc5fc66e
commit
a89b3c27aa
@ -89,6 +89,10 @@ class Group < ActiveRecord::Base
|
||||
validate :incoming_email_validator
|
||||
validate :can_allow_membership_requests, if: :allow_membership_requests
|
||||
validate :validate_grant_trust_level, if: :will_save_change_to_grant_trust_level?
|
||||
validates :automatic_membership_email_domains, length: { maximum: 100 }
|
||||
validates :bio_raw, length: { maximum: 3000 }
|
||||
validates :membership_request_template, length: { maximum: 500 }
|
||||
validates :full_name, length: { maximum: 100 }
|
||||
|
||||
AUTO_GROUPS = {
|
||||
everyone: 0,
|
||||
|
Reference in New Issue
Block a user