Skip to content

Add permission checks for connection picker#2089

Merged
alexandrudanpop merged 1 commit intomainfrom
feat/connection-picker-permissions
Mar 10, 2026
Merged

Add permission checks for connection picker#2089
alexandrudanpop merged 1 commit intomainfrom
feat/connection-picker-permissions

Conversation

@alexandrudanpop
Copy link
Copy Markdown
Contributor

Fixes OPS-3856

Copilot AI review requested due to automatic review settings March 9, 2026 14:19
@linear
Copy link
Copy Markdown

linear Bot commented Mar 9, 2026

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Mar 9, 2026

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds UI-level permission gating to the builder’s connection picker so only users with the appropriate connection-write permission can create or edit connections.

Changes:

  • Introduces useAuthorization + Permission.WRITE_APP_CONNECTION checks in the connection picker.
  • Hides the “Edit” button and “Create new connection” action when the user lacks write permission.
  • Refactors the select dropdown rendering into a ConnectionSelectContent helper with an empty-state message.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

@alexandrudanpop alexandrudanpop merged commit d0194c6 into main Mar 10, 2026
25 checks passed
@alexandrudanpop alexandrudanpop deleted the feat/connection-picker-permissions branch March 10, 2026 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants