Only show `Changes to free tier open source projects` banner to members
requested to merge 361684-changes-to-free-tier-public-projects-alert-is-shown-to-all-users into master
What does this MR do and why?
Related to #361684 (closed) and #365098 (closed)
Adds a permissions check to the Changes to free tier open source projects
alert so it is only shown to members of the parent group. This will fix an issue where the alert can not be closed by signed out users. Also it is confusing for user's that are not a member of the project to see this alert.
Screenshots or screen recordings
Signed out
Before | After |
---|---|
User with guest access or higher
Before | After |
---|---|
Signed in viewing a public project you are not a member of
Before | After |
---|---|
How to set up and validate locally
- Start GDK in SaaS mode. https://docs.gitlab.com/ee/development/ee_features.html#act-as-saas
- View a public project while signed out
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.
Edited by Peter Hegman