Skip to content

Check edit permission for querysets tile deletes, re #13151 - #13152

Merged
chrabyrd merged 1 commit into
dev/8.2.xfrom
cbyrd/13151-querysets-tile-delete-permissions
Nov 24, 2026
Merged

chrabyrd merged 1 commit into
dev/8.2.xfrom
cbyrd/13151-querysets-tile-delete-permissions

Conversation

@chrabyrd

Copy link
Copy Markdown
Contributor

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

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Description of Change

Issues Solved

Closes #

Checklist

  • I targeted one of these branches:
    • dev/8.2.x (under development): features, bugfixes not covered below
    • dev/8.1.x (main support): regressions, crashing bugs, security issues, major bugs in new features
    • dev/7.6.x (extended support): major security issues, data loss issues
  • I added a changelog in arches/releases
  • I submitted a PR to arches-docs (if appropriate)
  • Unit tests pass locally with my changes
  • I added tests that prove my fix is effective or that my feature works
  • My test fails on the target branch

Accessibility Checklist

Developer Guide

Topic Changed Retested
Color contrast
Form fields
Headings
Links
Keyboard
Responsive Design
HTML validation
Screen reader

Ticket Background

  • Sponsored by:
  • Found by: @
  • Tested by: @
  • Designed by: @

Further comments

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.
@chrabyrd chrabyrd self-assigned this Nov 24, 2026
@chrabyrd
chrabyrd requested a review from robgaston November 24, 2026 19:17

@robgaston robgaston left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

this lgtm - thanks!

@chrabyrd
chrabyrd merged commit acaee42 into dev/8.2.x Nov 24, 2026
7 checks passed
@github-project-automation github-project-automation Bot moved this to ✅ Done in pipeline Nov 24, 2026
@chrabyrd
chrabyrd deleted the cbyrd/13151-querysets-tile-delete-permissions branch November 24, 2026 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

2 participants