Skip to content

Allow organization owners to view explore dependency list page

mo khan requested to merge mokhax/441183/allow-org-admins into master

What does this MR do and why?

This change allows Organization Owners to access the /explore/dependencies page to view the Dependency list for the default organization.

#441183 (closed)

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Before After
before after

How to set up and validate locally

  1. Create a new user
  2. In rails console enable the feature flag for that user
    user = User.find_by(username: "new_user")
    Feature.enable(:explore_dependencies, user)
  3. Add the new user to the default organization
    Organizations::OrganizationUser.create_default_organization_record_for(user.id, user_is_admin: true)
  4. Visit http://127.0.0.1:3000/explore/dependencies and log in as the new user
Edited by mo khan

Merge request reports