mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-12-10 01:10:09 +03:00
[PR #4903] [MERGED] Allow enforcing Single Org with pw reset policy #2696
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/4903
Author: @BlackDex
Created: 8/28/2024
Status: ✅ Merged
Merged: 8/30/2024
Merged by: @dani-garcia
Base:
main← Head:enforce_single-org_with_pw-reset📝 Commits (2)
40be0a6Allow enforcing Single Org with pw reset policy650da04Removed some extra if checks📊 Changes
3 files changed (+43 additions, -0 deletions)
View changed files
📝
.env.template(+6 -0)📝
src/api/core/organizations.rs(+32 -0)📝
src/config.rs(+5 -0)📄 Description
Bitwarden only allows the Reset Password policy to be set when the Single Org policy is enabled already. This PR adds a check so that this can be enforced when a config option is enabled.
Since Vaultwarden encouraged to use multiple orgs when groups were not available yet we should not enable this by default now. This might be something to do in the future.
When enabled, it will prevent the Reset Password policy to be enabled if the Single Org policy is not enabled. It will also prevent the Single Org policy to be disabled if the Reset Password policy is enabled.
Fixes #4855
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.