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:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-12-28 18:07:23 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-12-28 18:07:23 +0300
commit20d52aa39ef79bc199e1459e385387baeb04d99f (patch)
treee13dc3aec8c70ad4c522452068b96fd98f2b3fa5 /app/models/group.rb
parentd30b2ead9a6606035a5d650216b9b5630b010421 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/group.rb')
-rw-r--r--app/models/group.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/group.rb b/app/models/group.rb
index 2067eed9989..37dcbf95e63 100644
--- a/app/models/group.rb
+++ b/app/models/group.rb
@@ -915,6 +915,10 @@ class Group < Namespace
feature_flag_enabled_for_self_or_ancestor?(:work_items_create_from_markdown)
end
+ def usage_quotas_enabled?
+ ::Feature.enabled?(:usage_quotas_for_all_editions, self) && root?
+ end
+
# Check for enabled features, similar to `Project#feature_available?`
# NOTE: We still want to keep this after removing `Namespace#feature_available?`.
override :feature_available?