about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-05-23 21:32:42 +0200
committerGitHub <noreply@github.com>2017-05-23 21:32:42 +0200
commit2ca1f0737a42f2943e8cf063f16eac5f93df2ed3 (patch)
tree5a8c06f6e90066188e10c08fed66f78223cf41af /app
parent19ecde8fe77137afc1182132bf81579f933e518b (diff)
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)
Diffstat (limited to 'app')
-rw-r--r--app/controllers/auth/registrations_controller.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/controllers/auth/registrations_controller.rb b/app/controllers/auth/registrations_controller.rb
index dd30be32a..d385c08e1 100644
--- a/app/controllers/auth/registrations_controller.rb
+++ b/app/controllers/auth/registrations_controller.rb
@@ -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)