Skip to content

Pass user instance through to filterable child serializers - #13349

Merged
SchrodingersGat merged 1 commit into
inventree:masterfrom
SchrodingersGat:barcode-field-permission
Nov 23, 2026
Merged

SchrodingersGat merged 1 commit into
inventree:masterfrom
SchrodingersGat:barcode-field-permission

Conversation

@SchrodingersGat

Copy link
Copy Markdown
Member

Closes a minor security hole where a scanned barcode could reveal too much information from related models against filterable serializer fields.

@SchrodingersGat SchrodingersGat added this to the 1.8.0 milestone Nov 23, 2026
@SchrodingersGat SchrodingersGat added bug Identifies a bug which needs to be addressed barcode Barcode scanning and integration 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.7.x Apply this label to backport a PR to the 1.7.x branch labels Nov 23, 2026
@netlify

netlify Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

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

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

@codecov

codecov Bot commented Nov 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.38%. Comparing base (adfd393) to head (6ac6e88).

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #13349   +/-   ##
=======================================
  Coverage   90.37%   90.38%           
=======================================
  Files         908      908           
  Lines       83874    83906   +32     
  Branches     4312     4312           
=======================================
+ Hits        75803    75838   +35     
+ Misses       7055     7052    -3     
  Partials     1016     1016           
Flag Coverage Δ
backend 93.93% <100.00%> (+<0.01%) ⬆️

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

Components Coverage Δ
Backend Apps 94.36% <100.00%> (+<0.01%) ⬆️
Backend General 95.01% <100.00%> (+<0.01%) ⬆️
Frontend 77.39% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@SchrodingersGat
SchrodingersGat merged commit b305677 into inventree:master Nov 23, 2026
52 of 53 checks passed
@SchrodingersGat
SchrodingersGat deleted the barcode-field-permission branch November 23, 2026 22:28
@github-actions

Copy link
Copy Markdown
Contributor

💔 All backports failed

Status Branch Result
❌ 1.7.x Backport failed because of merge conflicts

You might need to backport the following PRs to 1.7.x:
- [bug] Require only 'view' permission to read model metadata (#13348)
- [bug] API row locking (#13274)
- fix(backend): preserve redirect target through /accounts/login/ (#13279)

Manual backport

To create the backport manually run:

backport --pr 13349

Questions ?

Please refer to the Backport tool documentation and see the Github Action logs for details

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api Relates to the API backport Apply this label to a PR to enable auto-backport action backport-to-1.7.x Apply this label to backport a PR to the 1.7.x branch barcode Barcode scanning and integration 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