diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-04-13 18:11:28 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-04-13 18:11:28 +0000 |
commit | a5605d87fb839e0b1015ad9e736c44fbb2ada202 (patch) | |
tree | 9717afb7cc7d663de6bda5d78c651aafb73a16a3 /doc/development/ee_features.md | |
parent | 536d72ba7ea2226b56ddc55a3eb35c96a9ba3b6d (diff) | |
download | gitlab-ce-a5605d87fb839e0b1015ad9e736c44fbb2ada202.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/development/ee_features.md')
-rw-r--r-- | doc/development/ee_features.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/development/ee_features.md b/doc/development/ee_features.md index 81014b7624c..35e7824721a 100644 --- a/doc/development/ee_features.md +++ b/doc/development/ee_features.md @@ -23,6 +23,8 @@ when no license is active. So EE features always should be guarded by `project.feature_available?` or `group.feature_available?` (or `License.feature_available?` if it is a system-wide feature). +Frontend features should be guarded by pushing a flag from the backend by [using `push_licensed_feature`](licensed_feature_availability.md#restricting-frontend-features), and checked using `this.glFeatures.someFeature` in the frontend. + CE specs should remain untouched as much as possible and extra specs should be added for EE. Licensed features can be stubbed using the spec helper `stub_licensed_features` in `EE::LicenseHelpers`. |