Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
792a998b
Commit
792a998b
authored
Jun 12, 2019
by
Peter Leitzen
Committed by
Rémy Coutable
Jun 12, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Whitelist query limiting admin usage data endpoint
parent
97d2701f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
app/controllers/admin/application_settings_controller.rb
app/controllers/admin/application_settings_controller.rb
+6
-0
No files found.
app/controllers/admin/application_settings_controller.rb
View file @
792a998b
...
@@ -2,7 +2,9 @@
...
@@ -2,7 +2,9 @@
class
Admin::ApplicationSettingsController
<
Admin
::
ApplicationController
class
Admin::ApplicationSettingsController
<
Admin
::
ApplicationController
include
InternalRedirect
include
InternalRedirect
before_action
:set_application_setting
before_action
:set_application_setting
before_action
:whitelist_query_limiting
,
only:
[
:usage_data
]
def
show
def
show
end
end
...
@@ -102,6 +104,10 @@ class Admin::ApplicationSettingsController < Admin::ApplicationController
...
@@ -102,6 +104,10 @@ class Admin::ApplicationSettingsController < Admin::ApplicationController
@application_setting
=
Gitlab
::
CurrentSettings
.
current_application_settings
@application_setting
=
Gitlab
::
CurrentSettings
.
current_application_settings
end
end
def
whitelist_query_limiting
Gitlab
::
QueryLimiting
.
whitelist
(
'https://gitlab.com/gitlab-org/gitlab-ce/issues/63107'
)
end
def
application_setting_params
def
application_setting_params
params
[
:application_setting
]
||=
{}
params
[
:application_setting
]
||=
{}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment