Commit 5ace6925 authored by Robert Speicher's avatar Robert Speicher

Flag `Namespace#feature_available?` as override

parent 09e718a0
...@@ -112,6 +112,7 @@ module EE ...@@ -112,6 +112,7 @@ module EE
# Checks features (i.e. https://about.gitlab.com/pricing/) availabily # Checks features (i.e. https://about.gitlab.com/pricing/) availabily
# for a given Namespace plan. This method should consider ancestor groups # for a given Namespace plan. This method should consider ancestor groups
# being licensed. # being licensed.
override :feature_available?
def feature_available?(feature) def feature_available?(feature)
# This feature might not be behind a feature flag at all, so default to true # This feature might not be behind a feature flag at all, so default to true
return false unless ::Feature.enabled?(feature, default_enabled: true) return false unless ::Feature.enabled?(feature, default_enabled: true)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment