fix(api): Allow unlinking external issues with event:write - #123925
Open
betegon wants to merge 1 commit into
Open
fix(api): Allow unlinking external issues with event:write#123925betegon wants to merge 1 commit into
betegon wants to merge 1 commit into
Conversation
Accept write or admin for external issue unlink while preserving project and organization checks. Keep actual issue deletion restricted to event:admin.
betegon
marked this pull request as ready for review
September 9, 2026 18:13
Member
Author
|
The optional |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Allow
event:writeto unlink existing external issues through native integrations and both Sentry App DELETE routes. Users who can link a resource can also unlink it, including project members whose organization disableseventsMemberAdmin.The group routes use a narrow
GroupPermissionsubclass; the installation route updates its existing permission map.event:adminremains accepted, and deleting an actual Sentry issue still requires it. Existing organization, project and App identity checks remain in place. Paths, link deletion behavior and RPC contracts are unchanged.There are existing precedents for DELETE with write permission:
project:write.org:write.project:write.The issue PUT and native integration PUT already accept
event:write. This extends that policy specifically to removing external references; the shared issue DELETE permission is unchanged.