Whitelist query limiting admin usage data endpoint
This commit is contained in:
parent
97d2701ffa
commit
792a998bd4
1 changed files with 6 additions and 0 deletions
|
@ -2,7 +2,9 @@
|
|||
|
||||
class Admin::ApplicationSettingsController < Admin::ApplicationController
|
||||
include InternalRedirect
|
||||
|
||||
before_action :set_application_setting
|
||||
before_action :whitelist_query_limiting, only: [:usage_data]
|
||||
|
||||
def show
|
||||
end
|
||||
|
@ -102,6 +104,10 @@ class Admin::ApplicationSettingsController < Admin::ApplicationController
|
|||
@application_setting = Gitlab::CurrentSettings.current_application_settings
|
||||
end
|
||||
|
||||
def whitelist_query_limiting
|
||||
Gitlab::QueryLimiting.whitelist('https://gitlab.com/gitlab-org/gitlab-ce/issues/63107')
|
||||
end
|
||||
|
||||
def application_setting_params
|
||||
params[:application_setting] ||= {}
|
||||
|
||||
|
|
Loading…
Reference in a new issue