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 'doc/development/licensed_feature_availability.md')
-rw-r--r--doc/development/licensed_feature_availability.md10
1 files changed, 9 insertions, 1 deletions
diff --git a/doc/development/licensed_feature_availability.md b/doc/development/licensed_feature_availability.md
index 6df5c2164e8..09c32fc4244 100644
--- a/doc/development/licensed_feature_availability.md
+++ b/doc/development/licensed_feature_availability.md
@@ -22,9 +22,17 @@ it should be restricted on namespace scope.
1. Check using:
```ruby
-project.feature_available?(:feature_symbol)
+project.licensed_feature_available?(:feature_symbol)
```
+or
+
+```ruby
+group.licensed_feature_available?(:feature_symbol)
+```
+
+For projects, `licensed_feature_available` delegates to its associated `namespace`.
+
## Restricting global features (instance)
However, for features such as [Geo](../administration/geo/index.md) and