Show Billing menu to users with Auditor access
What does this MR do and why?
Add "Billing" to the Settings sections of the group for users with Auditor access level.
| User | Settings menu | Billing item | Other menu items |
|---|---|---|---|
| Has regular access level and is a group owner | Shown | Shown | Shown |
| Has auditor access level and is a guest | Shown | Shown | Hidden |
| Has regular access level and is a guest | Hidden | Hidden | Hidden |
Related to #378074 (closed)
Screenshots or screen recordings
| User | Screenshot before | Screenshot after |
|---|---|---|
| Has regular access level and is a group owner (no changes) | ![]() |
![]() |
| Has auditor access level and is a guest | ![]() |
![]() |
| Has regular access level and is a guest (no changes) | ![]() |
![]() |
How to set up and validate locally
- Setup and run CustomersDot
- Within your gitlab terminal window, run
export GITLAB_SIMULATE_SAAS=1 - If GDK is already running, restart it
- Run
rails cto open the rails console - Run
::Gitlab::CurrentSettings.update(check_namespace_plan: true)and::Gitlab::CurrentSettings.update(automatic_purchased_storage_allocation: true) - Enable
auditor_billing_page_accessfeature flag
Group Billing Page
- Ensure you have a group where you're an owner, or create one
- Verify that you can see
Billingmenu item on group level Settings menu - Create an auditor user, invite them to the group as a guest, then impersonate as that user
- Verify that you can see
Billingmenu items on that group level Settings menu - Create another user with Regular access level and invite them to the group as a guest, then impersonate as that user
- Verify that you don't Settings menu on a group level
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 Diana Zubova





