Commit c472e8f6 authored by Stan Hu's avatar Stan Hu

Merge branch 'sh-fix-api-exception-handling' into 'master'

Ensure #route_setting is available before calling it

See merge request !2908
parents 84661628 1a11345e
---
title: 'Ensure #route_setting is available before calling it'
merge_request: 2908
author:
type: fixed
...@@ -106,6 +106,8 @@ module API ...@@ -106,6 +106,8 @@ module API
private private
def route_authentication_setting def route_authentication_setting
return {} unless respond_to?(:route_setting)
route_setting(:authentication) || {} route_setting(:authentication) || {}
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment