mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-25 20:46:12 +10:00
Merge branch 'fix_constant' into 'master'
ForbiddenAction constant name fix See merge request !1387
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user