fix: enforce billing-only settings access #8053

Openjobenjada wants to merge 1 commit into main from pull/8053/head· opened yesterday
+46−3
jobenjada commented yesterdayAuthor

Closes ENG-982

Summary

  • enforce server-side redirects so users with billing role can only access billing settings: Cloud -> /settings/organization/billing, self-hosted -> /settings/organization/enterprise
  • guard direct URL access to restricted settings pages (organization/general, organization/teams, organization/feedback-directories, organization/api-keys, organization/domain) and the account settings section
  • align sidebar UX by disabling the Feedback Directories nav item for non-owner/non-manager roles, matching other inaccessible settings entries

Test plan

  • Run linter diagnostics on all changed files
  • Verify manually as billing role on Cloud: restricted settings URLs redirect to /settings/organization/billing
  • Verify manually as billing role on self-hosted: restricted settings URLs redirect to /settings/organization/enterprise
  • Verify owners/managers retain access to organization/account settings pages

Tested locally

jobenjada added 1 commit yesterday
fix: enforce billing-only settings accessc587868

Review required

Review the changes, then submit to get graded.

Some checks haven’t completed yet

1 check: dojo / review-grader

Keyboard shortcuts

Site-wide

Focus the search bar
/
Show this dialog
?

Pull request

Move to the next file
j
Move to the previous file
k
Filter changed files
t
Comment on the selected lines
c
Select a range of lines
Shiftclick