Skip to content

Logout user when deleting UserSession - #13145

Merged
SchrodingersGat merged 1 commit into
inventree:masterfrom
SchrodingersGat:session-delete-fix
Nov 1, 2026
Merged

SchrodingersGat merged 1 commit into
inventree:masterfrom
SchrodingersGat:session-delete-fix

Conversation

@SchrodingersGat

Copy link
Copy Markdown
Member

When deleting a UserSession via the django admin interface, end the session first to ensure the user is logged out

@SchrodingersGat SchrodingersGat added the security Relates to a security issue label Nov 1, 2026
@netlify

netlify Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

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

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

@codecov

codecov Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 93.33333% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 86.87%. Comparing base (c1cd45f) to head (c1997b6).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #13145      +/-   ##
==========================================
- Coverage   86.88%   86.87%   -0.02%     
==========================================
  Files        1562     1562              
  Lines      110541   110654     +113     
  Branches    12119    12119              
==========================================
+ Hits        96047    96134      +87     
- Misses      14427    14453      +26     
  Partials       67       67              
Flag Coverage Δ
backend 91.20% <93.33%> (+<0.01%) ⬆️

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

Components Coverage Δ
Backend Apps 92.72% <92.00%> (-0.04%) ⬇️
Backend General 94.51% <ø> (-0.27%) ⬇️
Frontend 79.58% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@SchrodingersGat SchrodingersGat added this to the 1.7.0 milestone Nov 1, 2026
@SchrodingersGat SchrodingersGat added bug Identifies a bug which needs to be addressed backport Apply this label to a PR to enable auto-backport action backport-to-1.6.x labels Nov 1, 2026
@SchrodingersGat
SchrodingersGat merged commit 9bb7d23 into inventree:master Nov 1, 2026
52 checks passed
@SchrodingersGat
SchrodingersGat deleted the session-delete-fix branch November 1, 2026 20:08
@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

💚 All backports created successfully

Status Branch Result
✅ 1.6.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 1, 2026
(cherry picked from commit 9bb7d23)

Co-authored-by: Oliver <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport Apply this label to a PR to enable auto-backport action 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