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
65dae368
Commit
65dae368
authored
Jul 09, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
f81322f9
6b8ab70b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
config/initializers/rack_attack_logging.rb
config/initializers/rack_attack_logging.rb
+1
-1
lib/gitlab/gon_helper.rb
lib/gitlab/gon_helper.rb
+5
-0
No files found.
config/initializers/rack_attack_logging.rb
View file @
65dae368
...
@@ -12,7 +12,7 @@ ActiveSupport::Notifications.subscribe('rack.attack') do |name, start, finish, r
...
@@ -12,7 +12,7 @@ ActiveSupport::Notifications.subscribe('rack.attack') do |name, start, finish, r
fullpath:
req
.
fullpath
fullpath:
req
.
fullpath
}
}
if
req
.
env
[
'rack.attack.matched'
]
!=
'throttle_unauthenticated'
if
%w(throttle_authenticated_api throttle_authenticated_web)
.
include?
req
.
env
[
'rack.attack.matched'
]
user_id
=
req
.
env
[
'rack.attack.match_discriminator'
]
user_id
=
req
.
env
[
'rack.attack.match_discriminator'
]
user
=
User
.
find_by
(
id:
user_id
)
user
=
User
.
find_by
(
id:
user_id
)
...
...
lib/gitlab/gon_helper.rb
View file @
65dae368
...
@@ -38,6 +38,11 @@ module Gitlab
...
@@ -38,6 +38,11 @@ module Gitlab
gon
.
current_user_fullname
=
current_user
.
name
gon
.
current_user_fullname
=
current_user
.
name
gon
.
current_user_avatar_url
=
current_user
.
avatar_url
gon
.
current_user_avatar_url
=
current_user
.
avatar_url
end
end
# Flag controls a GFM feature used across many routes.
# Pushing the flag from one place simplifies control
# and facilitates easy removal.
push_frontend_feature_flag
(
:gfm_embedded_metrics
)
end
end
# Exposes the state of a feature flag to the frontend code.
# Exposes the state of a feature flag to the frontend code.
...
...
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