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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
9d9f3a10
Commit
9d9f3a10
authored
Nov 12, 2021
by
Dmitry Gruzd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change type of block_anonymous_global_searches
parent
8e9b83f5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
app/controllers/search_controller.rb
app/controllers/search_controller.rb
+1
-1
config/feature_flags/ops/block_anonymous_global_searches.yml
config/feature_flags/ops/block_anonymous_global_searches.yml
+2
-2
No files found.
app/controllers/search_controller.rb
View file @
9d9f3a10
...
...
@@ -152,7 +152,7 @@ class SearchController < ApplicationController
def
block_anonymous_global_searches
return
if
params
[
:project_id
].
present?
||
params
[
:group_id
].
present?
return
if
current_user
return
unless
::
Feature
.
enabled?
(
:block_anonymous_global_searches
)
return
unless
::
Feature
.
enabled?
(
:block_anonymous_global_searches
,
type: :ops
)
store_location_for
(
:user
,
request
.
fullpath
)
...
...
config/feature_flags/
development
/block_anonymous_global_searches.yml
→
config/feature_flags/
ops
/block_anonymous_global_searches.yml
View file @
9d9f3a10
---
name
:
block_anonymous_global_searches
introduced_by_url
:
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/41041
rollout_issue_url
:
https://gitlab.com/gitlab-org/gitlab/-/issues/244276
rollout_issue_url
:
milestone
:
'
13.4'
type
:
development
type
:
ops
group
:
group::global search
default_enabled
:
false
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