Skip to content

User role checks for action endpoints - #13410

Open
SchrodingersGat wants to merge 2 commits into
inventree:masterfrom
SchrodingersGat:api-roles
Open

SchrodingersGat wants to merge 2 commits into
inventree:masterfrom
SchrodingersGat:api-roles

Conversation

@SchrodingersGat

Copy link
Copy Markdown
Member

Replaces #13243

Ensure that the user has the correct role when performing transition actions against the API

@SchrodingersGat SchrodingersGat added this to the 1.8.0 milestone Nov 29, 2026
@SchrodingersGat SchrodingersGat added bug Identifies a bug which needs to be addressed api Relates to the API labels Nov 29, 2026
@netlify

netlify Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for inventree-web-pui-preview ready!

Name Link
🔨 Latest commit 4ba7652
🔍 Latest deploy log https://app.netlify.com/projects/inventree-web-pui-preview/deploys/6b0be997a1f4a059f75d7b04
😎 Deploy Preview https://deploy-preview-13410--inventree-web-pui-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 96 (no change from production)
Accessibility: 82 (no change from production)
Best Practices: 92 (no change from production)
SEO: 78 (no change from production)
PWA: -
View the detailed breakdown and full score reports
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@codecov

codecov Bot commented Nov 29, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 94.17476% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 90.57%. Comparing base (2560725) to head (4ba7652).

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #13410   +/-   ##
=======================================
  Coverage   90.56%   90.57%           
=======================================
  Files         915      915           
  Lines       85236    85334   +98     
  Branches     4349     4349           
=======================================
+ Hits        77195    77287   +92     
- Misses       7016     7022    +6     
  Partials     1025     1025           
Flag Coverage Δ
backend 94.04% <94.17%> (-0.01%) ⬇️

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

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

@matmair matmair 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.

we should probably backport this?

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants