Allow organization owners to view explore dependency list page
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.
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 |
---|---|
![]() |
![]() |
How to set up and validate locally
- Create a new user
- In rails console enable the feature flag for that user
user = User.find_by(username: "new_user") Feature.enable(:explore_dependencies, user)
- Add the new user to the default organization
Organizations::OrganizationUser.create_default_organization_record_for(user.id, user_is_admin: true)
- Visit
http://127.0.0.1:3000/explore/dependencies
and log in as the new user
Edited by mo khan