Skip to content

Prevent delete operation on /api/user/me/ - #12770

Merged
SchrodingersGat merged 7 commits into
inventree:masterfrom
SchrodingersGat:user-delete-fix
Sep 3, 2026
Merged

SchrodingersGat merged 7 commits into
inventree:masterfrom
SchrodingersGat:user-delete-fix

Conversation

@SchrodingersGat

Copy link
Copy Markdown
Member

UserMe endpoint inherits from the UserDetail endpoint - this fix explicitly removes support for the 'delete' operation

@netlify

netlify Bot commented Sep 2, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for inventree-web-pui-preview canceled.

Name Link
🔨 Latest commit abbf710
🔍 Latest deploy log https://app.netlify.com/projects/inventree-web-pui-preview/deploys/6a98f055840527000837c587

@SchrodingersGat SchrodingersGat added bug Identifies a bug which needs to be addressed api Relates to the API security Relates to a security issue backport Apply this label to a PR to enable auto-backport action backport-to-1.5.x labels Sep 2, 2026
@SchrodingersGat SchrodingersGat added this to the 1.6.0 milestone Sep 2, 2026
@matmair

matmair commented Sep 2, 2026

Copy link
Copy Markdown
Member

This will need an api version bump and thus should not be backported

@codecov

codecov Bot commented Sep 2, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.15%. Comparing base (8c1c16e) to head (abbf710).

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #12770      +/-   ##
==========================================
+ Coverage   87.12%   87.15%   +0.03%     
==========================================
  Files        1483     1481       -2     
  Lines      100467    99989     -478     
  Branches    11521    11428      -93     
==========================================
- Hits        87535    87150     -385     
+ Misses      12867    12775      -92     
+ Partials       65       64       -1     
Flag Coverage Δ
backend 91.15% <100.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
Backend Apps 92.31% <100.00%> (-0.11%) ⬇️
Backend General 93.95% <ø> (-0.74%) ⬇️
Frontend 79.89% <ø> (+0.12%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@SchrodingersGat SchrodingersGat removed backport Apply this label to a PR to enable auto-backport action backport-to-1.5.x labels Sep 3, 2026
@SchrodingersGat
SchrodingersGat merged commit aadd27d into inventree:master Sep 3, 2026
42 checks passed
@SchrodingersGat
SchrodingersGat deleted the user-delete-fix branch September 3, 2026 05:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api Relates to the API bug Identifies a bug which needs to be addressed security Relates to a security issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants