mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-04-26 01:35:54 +03:00
[PR #3252] [MERGED] Fix Organization delete when groups are configured #3251
Labels
No labels
SSO
Third party
better for forum
bug
bug
documentation
duplicate
enhancement
future Vault
future Vault
future Vault
good first issue
help wanted
low priority
notes
pull-request
question
troubleshooting
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vaultwarden#3251
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/dani-garcia/vaultwarden/pull/3252
Author: @BlackDex
Created: 2/16/2023
Status: ✅ Merged
Merged: 2/21/2023
Merged by: @dani-garcia
Base:
main← Head:issue-3247📝 Commits (1)
32bd9b8Fix Organization delete when groups are configured📊 Changes
2 files changed (+9 additions, -1 deletions)
View changed files
📝
src/db/models/group.rs(+7 -0)📝
src/db/models/organization.rs(+2 -1)📄 Description
With existing groups configured within an org, deleting that org would fail because of Foreign Key issues.
This PR fixes this by making sure the groups get deleted before the org does.
Fixes #3247
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.