diff options
author | Valery Sizov <valery@gitlab.com> | 2015-01-12 20:30:52 +0300 |
---|---|---|
committer | Valery Sizov <valery@gitlab.com> | 2015-01-12 20:30:52 +0300 |
commit | 058f223b01c87fc45825c2459d36371166abfc27 (patch) | |
tree | 6edc9dd0e33405b1f685850fa846db03abb9f53d /app/controllers/omniauth_callbacks_controller.rb | |
parent | 1c6a1253899219b84cc9cb8b090a3bfbbd19605e (diff) |
ForbiddenAction constant fix
Diffstat (limited to 'app/controllers/omniauth_callbacks_controller.rb')
-rw-r--r-- | app/controllers/omniauth_callbacks_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/omniauth_callbacks_controller.rb b/app/controllers/omniauth_callbacks_controller.rb index 3e984e5007a..442a1cf7518 100644 --- a/app/controllers/omniauth_callbacks_controller.rb +++ b/app/controllers/omniauth_callbacks_controller.rb @@ -65,7 +65,7 @@ class OmniauthCallbacksController < Devise::OmniauthCallbacksController redirect_to omniauth_error_path(oauth['provider'], error: error_message) and return end end - rescue ForbiddenAction => e + rescue Gitlab::OAuth::ForbiddenAction => e flash[:notice] = e.message redirect_to new_user_session_path end |