Add license check to authorizer
What does this MR do and why?
Previously in the Authorizer class there were no license check, leading to groups with experiment and beta feature enabled to have access to chat even without Ultimate license. This is a fix.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
How to set up and validate locally
- In rails console change settings of a group without plan
Group.last.namespace_settings.update_column(:experiment_features_enabled, true)
- Try asking about an issue in this group - you should see the answer.
- Switch to this branch
- Try asking about an issue in this group - you should see the information about the wrong pricing tier.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
solves #431209 (closed)
Edited by Gosia Ksionek