Skip to content

Add admin_web_hook ability to custom roles

What does this MR do and why?

Add admin_web_hook ability to custom roles. See gitlab-org/quality/triage-ops#1373

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

image

How to set up and validate locally

  1. Impersonate a user with something like developer role in a group
  2. Try and visit the project hooks path: http://gdk.local:3000/flightjs/Flight/-/hooks
  3. Try and visit the group hooks path: http://gdk.local:3000/groups/flightjs/-/hooks
  4. Both should return 404
  5. Create a custom role adding the "Admin web hook" ability
  6. Assign the new custom role to the person you were impersonating
  7. Try and visit the project hooks path: http://gdk.local:3000/flightjs/Flight/-/hooks
  8. Try and visit the group hooks path: http://gdk.local:3000/groups/flightjs/-/hooks
  9. Both should work 🎉
  10. Try adding/editing/removing/testing etc- all should work 🎉
  11. Try the same using the API
Edited by Lee Tickett

Merge request reports