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:
Diffstat (limited to 'app/models/group.rb')
-rw-r--r--app/models/group.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/models/group.rb b/app/models/group.rb
index 203ed1694b7..f4eaa581d54 100644
--- a/app/models/group.rb
+++ b/app/models/group.rb
@@ -475,6 +475,16 @@ class Group < Namespace
false
end
+ def wiki_access_level
+ # TODO: Remove this method once we implement group-level features.
+ # https://gitlab.com/gitlab-org/gitlab/-/issues/208412
+ if Feature.enabled?(:group_wiki, self)
+ ProjectFeature::ENABLED
+ else
+ ProjectFeature::DISABLED
+ end
+ end
+
private
def update_two_factor_requirement