mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Implemented strong_parameters for Invite/InvitesController.
The email parameter is now required using strong parameters and will throw ActionController::ParameterMissing if it is missing. If the email address is incorrect or invalid, Discourse::InvalidParameters will still be thrown.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
require_dependency 'trashable'
|
||||
|
||||
class Invite < ActiveRecord::Base
|
||||
include ActiveModel::ForbiddenAttributesProtection
|
||||
include Trashable
|
||||
|
||||
belongs_to :user
|
||||
|
||||
Reference in New Issue
Block a user