Fix Devise destroy method being available to delete user record (#3266)
(You may think that we need account deletions, but this way would've just orphaned the db records)
This commit is contained in:
		@@ -6,6 +6,10 @@ class Auth::RegistrationsController < Devise::RegistrationsController
 | 
			
		||||
  before_action :check_enabled_registrations, only: [:new, :create]
 | 
			
		||||
  before_action :configure_sign_up_params, only: [:create]
 | 
			
		||||
 | 
			
		||||
  def destroy
 | 
			
		||||
    not_found
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  protected
 | 
			
		||||
 | 
			
		||||
  def build_resource(hash = nil)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user