mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-03-14 10:54:11 -05:00
[PR #1991] [MERGED] feature: Support single organization policy #6681
Reference in New Issue
Block a user
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/1991
Author: @domdomegg
Created: 9/24/2021
Status: ✅ Merged
Merged: 10/8/2021
Merged by: @dani-garcia
Base:
main← Head:domdomegg/single-organization-policy📝 Commits (1)
d014eedfeature: Support single organization policy📊 Changes
11 files changed (+97 additions, -13 deletions)
View changed files
📝
src/api/core/ciphers.rs(+1 -1)📝
src/api/core/emergency_access.rs(+1 -1)📝
src/api/core/organizations.rs(+56 -0)📝
src/api/identity.rs(+2 -2)📝
src/config.rs(+1 -0)📝
src/db/models/org_policy.rs(+5 -6)📝
src/db/models/organization.rs(+1 -1)📝
src/db/models/user.rs(+2 -2)📝
src/mail.rs(+12 -0)➕
src/static/templates/email/send_single_org_removed_from_org.hbs(+5 -0)➕
src/static/templates/email/send_single_org_removed_from_org.html.hbs(+11 -0)📄 Description
This adds back-end support for the single organization policy.
This is listed on the wiki as a feature in scope for Vaultwarden that a contribution would be welcome for.
NB: this is not already done by #1955, despite that PR enabling the enum for it (it only implements the RequireSso policy).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.