Skip to content

Show webhook settings link if user has permissions

Kev Kloss requested to merge kkloss-webhook-group-settings-link into master

What does this MR do and why?

This makes the Webhook settings link show up in the group sidebar if the user has permission to view webhooks.

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

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After
image image

How to set up and validate locally

  1. Create a custom role that allows managing webhooks
  2. Go to a project
  3. Add a member with the created custom role
  4. Impersonate the member
  5. See that the Settings and Webhooks link show up in the group sidebar

Merge request reports