Add gon.licensed_features for checking EE features
What does this MR do?
Make EE feature checks work more like feature flag checks.
Add a push_frontend_licensed_feature
that is used by controllers, and adds results to gon.licensed_features.whatever
Some open questions:
- is this sensible?
- Can there be cases where we have the same feature on a page that is licensed for a project, but not for a group?
- is there a better name than
licensed_features
? Maybe camelCased? Maybe something else
For #7202 (closed)
Edited by Simon Knox