Merge branch 'fix_constant' into 'master'

ForbiddenAction constant name fix

See merge request !1387
This commit is contained in:
Dmitriy Zaporozhets 2015-01-12 21:19:04 +00:00
commit 3103e567bc
1 changed files with 1 additions and 1 deletions

View File

@ -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