about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorMatt Jankowski <mjankowski@thoughtbot.com>2017-05-02 17:37:58 -0400
committerEugen Rochko <eugen@zeonfederated.com>2017-05-02 23:37:58 +0200
commit268dd32d76b42dc1f2a044cedeee5446cb9185c2 (patch)
tree874d18715a1c47a575aabf657256b68cf1595ee9 /app
parentbea97ea76638552e437a3b6d6f48040449849448 (diff)
Auth sign out (#2511)
* Add a spec for signing out

* Add spec showing that suspended user gets a 403 forbidden on sign out

* Allow suspended account users to sign out
Diffstat (limited to 'app')
-rw-r--r--app/controllers/auth/sessions_controller.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/auth/sessions_controller.rb b/app/controllers/auth/sessions_controller.rb
index 4a5e0da6e..1aa84a354 100644
--- a/app/controllers/auth/sessions_controller.rb
+++ b/app/controllers/auth/sessions_controller.rb
@@ -6,6 +6,7 @@ class Auth::SessionsController < Devise::SessionsController
   layout 'auth'
 
   skip_before_action :require_no_authentication, only: [:create]
+  skip_before_action :check_suspension, only: [:destroy]
   prepend_before_action :authenticate_with_two_factor, if: :two_factor_enabled?, only: [:create]
 
   def create