Skip to content

[bug] Fix for token issuance via UI - #13307

Merged
SchrodingersGat merged 1 commit into
inventree:masterfrom
SchrodingersGat:token-fix
Nov 17, 2026
Merged

SchrodingersGat merged 1 commit into
inventree:masterfrom
SchrodingersGat:token-fix

Conversation

@SchrodingersGat

Copy link
Copy Markdown
Member

- Fixes bug where non-staff users could not generate (or revoke) their own tokens via the API
- Closes inventree#13299
@SchrodingersGat SchrodingersGat added this to the 1.8.0 milestone Nov 17, 2026
@SchrodingersGat SchrodingersGat added bug Identifies a bug which needs to be addressed api Relates to the API backport Apply this label to a PR to enable auto-backport action User Interface Related to the frontend / User Interface backport-to-1.7.x Apply this label to backport a PR to the 1.7.x branch labels Nov 17, 2026
@netlify

netlify Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

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

Name Link
🔨 Latest commit ab13ed1
🔍 Latest deploy log https://app.netlify.com/projects/inventree-web-pui-preview/deploys/6afc259e9f195f249a1c0a85
😎 Deploy Preview https://deploy-preview-13307--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: 94 (🟢 up 2 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 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.33%. Comparing base (9485114) to head (ab13ed1).
⚠️ Report is 3 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #13307   +/-   ##
=======================================
  Coverage   90.32%   90.33%           
=======================================
  Files         901      901           
  Lines       83354    83396   +42     
  Branches     4284     4284           
=======================================
+ Hits        75292    75337   +45     
+ Misses       7046     7043    -3     
  Partials     1016     1016           
Flag Coverage Δ
backend 93.88% <100.00%> (+<0.01%) ⬆️

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

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

@SchrodingersGat
SchrodingersGat merged commit 8f8502d into inventree:master Nov 17, 2026
64 of 65 checks passed
@SchrodingersGat
SchrodingersGat deleted the token-fix branch November 17, 2026 11:03
@github-actions

Copy link
Copy Markdown
Contributor

💚 All backports created successfully

Status Branch Result
✅ 1.7.x

Questions ?

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

SchrodingersGat added a commit that referenced this pull request Nov 17, 2026
- Fixes bug where non-staff users could not generate (or revoke) their own tokens via the API
- Closes #13299

(cherry picked from commit 8f8502d)

Co-authored-by: Oliver <[email protected]>
Co-authored-by: Matthias Mair <[email protected]>
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 bug Identifies a bug which needs to be addressed User Interface Related to the frontend / User Interface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Users lack permission to create API tokens for themselves

2 participants