Merge branch 'fix_constant' into 'master'
ForbiddenAction constant name fix See merge request !1387
This commit is contained in:
commit
3103e567bc
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue