discourse/plugins/chat/app/validators/chat
..
allow_uploads_validator.rb
direct_message_enabled_groups_validator.rb