Skip to content

Only show `Changes to free tier open source projects` banner to members

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
Screen_Shot_2022-06-21_at_1.38.10_PM Screen_Shot_2022-06-21_at_1.13.14_PM

User with guest access or higher

Before After
Screen_Shot_2022-06-21_at_1.43.03_PM Screen_Shot_2022-06-21_at_1.32.52_PM

Signed in viewing a public project you are not a member of

Before After
Screen_Shot_2022-06-21_at_1.36.18_PM Screen_Shot_2022-06-21_at_1.34.17_PM

How to set up and validate locally

  1. Start GDK in SaaS mode. https://docs.gitlab.com/ee/development/ee_features.html#act-as-saas
  2. 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.

Edited by Peter Hegman

Merge request reports

Loading