mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-04-26 01:35:54 +03:00
[PR #6247] [MERGED] Fix around singleorg policy #3757
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#3757
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/6247
Author: @Timshel
Created: 8/28/2025
Status: ✅ Merged
Merged: 11/23/2025
Merged by: @dani-garcia
Base:
main← Head:fix/singleorg📝 Commits (1)
89a5790Fix around singleorg policy📊 Changes
8 files changed (+63 additions, -133 deletions)
View changed files
📝
src/api/admin.rs(+3 -18)📝
src/api/core/mod.rs(+4 -19)📝
src/api/core/organizations.rs(+16 -59)📝
src/db/models/mod.rs(+1 -1)📝
src/db/models/org_policy.rs(+29 -31)📝
src/db/models/organization.rs(+6 -1)📝
src/static/templates/email/send_single_org_removed_from_org.hbs(+2 -2)📝
src/static/templates/email/send_single_org_removed_from_org.html.hbs(+2 -2)📄 Description
Should fix:
Moved all the logic back to the
check_user_allowedinstead of having to duplicate it from all call site, might make sense to move it out, inside a mod.rs maybe ?Add the Admin and Invited membership test in
check_user_allowed, means that all membership modification need to be done before calling the check.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.