summaryrefslogtreecommitdiff
path: root/lib/feature.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/feature.rb')
-rw-r--r--lib/feature.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/feature.rb b/lib/feature.rb
index 5470c2802d5..c4e1741df52 100644
--- a/lib/feature.rb
+++ b/lib/feature.rb
@@ -60,7 +60,9 @@ class Feature
def register_feature_groups
Flipper.register(:performance_team) do |actor|
- actor.thing&.is_a?(User) && Gitlab::PerformanceBar.allowed_user?(actor.thing)
+ user = actor.thing
+
+ user&.is_a?(User) && Gitlab::PerformanceBar.allowed_user?(user)
end
end
end