Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-07-03 20:09:14 +0300
committerRémy Coutable <remy@rymai.me>2017-07-06 12:18:26 +0300
commitcdc1179facda972671cd80229a1db43b7f20bd52 (patch)
tree27b9dcb44a7c900b10d40698daefb6c5fba9c0a5 /lib/gitlab/performance_bar.rb
parent19b8d8af2c74e0ff241356d5ccb5890baa6fb7c8 (diff)
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.rb4
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