mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-07-17 17:32:27 -05:00
[PR #4265] [MERGED] prevent side effects if groups are disabled #26963
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/4265
Author: @stefan0xC
Created: 1/22/2024
Status: ✅ Merged
Merged: 1/25/2024
Merged by: @dani-garcia
Base:
main← Head:prevent-group-side-effects📝 Commits (1)
4c69326prevent side effects if groups are disabled📊 Changes
4 files changed (+225 additions, -125 deletions)
View changed files
📝
src/api/core/ciphers.rs(+14 -7)📝
src/api/core/organizations.rs(+1 -1)📝
src/db/models/cipher.rs(+83 -43)📝
src/db/models/collection.rs(+127 -74)📄 Description
while working on #3754 I noticed that if I disable groups the collections and ciphers that I had access to via a group are still shown because the queries don't take into account if the groups are enabled or not.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.