Skip to content

Change permission for namespace type to read_namespace

What does this MR do and why?

Namespaces have not been visible on the GraphQL API for users that are not part of the namespace. This is different than it is for groups when they are public. This changes the namespaces to be visible to everyone, if they are public.

Related issues

Screenshots or screen recordings

before after
image image

How to set up and validate locally

  1. bin/rails runner "Feature.enable :achievements"
  2. Have achievements (either already seeded or bin/rake db:seed_fu FILTER=36_achievements
  3. Find a user that has achievements (Rails console)
    ua = Achievements::UserAchievement.first
    puts ua.achievement.namespace.full_path
    puts ua.user.username
  4. Impersonate a user that is not a member of the group
  5. Visit the profile of the user and verify that the group name appears in the tooltip of the achievement

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 Lee Tickett

Merge request reports

Loading