Skip to content

Add license check to authorizer

Gosia Ksionek requested to merge mk-add-license-check-to-authorizer into master

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
image image

How to set up and validate locally

  1. In rails console change settings of a group without plan
    Group.last.namespace_settings.update_column(:experiment_features_enabled, true)
  2. Try asking about an issue in this group - you should see the answer.
  3. Switch to this branch
  4. 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.

solves #431209 (closed)

Edited by Gosia Ksionek

Merge request reports

Loading