Repository navigation
Check edit permission for querysets tile deletes, re #13151 - #13152
Merged
chrabyrd merged 1 commit intoNov 24, 2026
Merged
Conversation
Deleting a tile through the querysets API checked user_can_delete_resource, so tiles couldn't be deleted from resources whose lifecycle state allows edits but not deletes. Tile deletes now check user_can_edit_resource and follow the rules TileData.delete_tile() applies: only reviewers may delete authoritative data, and the user needs delete permission on the tile's nodegroup.
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.
Deleting a tile through the querysets API checked user_can_delete_resource, so tiles couldn't be deleted from resources whose lifecycle state allows edits but not deletes. Tile deletes now check user_can_edit_resource and follow the rules TileData.delete_tile() applies: only reviewers may delete authoritative data, and the user needs delete permission on the tile's nodegroup.
Types of changes
Description of Change
Issues Solved
Closes #
Checklist
Accessibility Checklist
Developer Guide
Ticket Background
Further comments