diff options
author | Rémy Coutable <remy@rymai.me> | 2017-07-03 19:09:14 +0200 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-07-06 11:18:26 +0200 |
commit | cdc1179facda972671cd80229a1db43b7f20bd52 (patch) | |
tree | 27b9dcb44a7c900b10d40698daefb6c5fba9c0a5 /lib/gitlab/performance_bar.rb | |
parent | 19b8d8af2c74e0ff241356d5ccb5890baa6fb7c8 (diff) | |
download | gitlab-ce-cdc1179facda972671cd80229a1db43b7f20bd52.tar.gz |
Improve feature flag check for the performance bar
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'lib/gitlab/performance_bar.rb')
-rw-r--r-- | lib/gitlab/performance_bar.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/performance_bar.rb b/lib/gitlab/performance_bar.rb index af73cae3c9f..60c8ba5063e 100644 --- a/lib/gitlab/performance_bar.rb +++ b/lib/gitlab/performance_bar.rb @@ -21,10 +21,10 @@ module Gitlab if RequestStore.active? RequestStore.fetch('performance_bar:allowed_group') do - Group.by_path(Gitlab.config.performance_bar.allowed_group) + Group.find_by_full_path(Gitlab.config.performance_bar.allowed_group) end else - Group.by_path(Gitlab.config.performance_bar.allowed_group) + Group.find_by_full_path(Gitlab.config.performance_bar.allowed_group) end end |