0
0
Fork 0
mirror of https://github.com/dani-garcia/vaultwarden synced 2024-06-28 00:38:23 +02:00
bitwarden_rs/src/api/core
Matlink 7c3cad197c
Fix #3624: fix manager permission within groups (#3754)
* Fix #3624: fix manager permission within groups

* Query returns UUID only

* Fix issue when user is manager and in a group having access to all collections

* optimize condition check

* fix(groups): renaming and optimizations

* fix: wrong organization group membership detection

* Simplify group membership check

Co-authored-by: Stefan Melmuk <509385+stefan0xC@users.noreply.github.com>

* Remove unused statement

* improve check if the user has access via groups

instead of returning the two lists of member ids and later checking if
they contain the uuid of the current user, we really only care if
the current user has full access via a group or if they have
access to a given collection via a group

* improve comments for get_org_collections_details

* small refactor to make it easier to review

* fix(groups): query full access via group only when necessary

Co-authored-by: Mathijs van Veluw <black.dex@gmail.com>

* chore(fmt): apply rustfmt

---------

Co-authored-by: Stefan Melmuk <509385+stefan0xC@users.noreply.github.com>
Co-authored-by: Stefan Melmuk <stefan.melmuk@gmail.com>
Co-authored-by: Mathijs van Veluw <black.dex@gmail.com>
2024-03-17 22:11:34 +01:00
..
two_factor Change timestamp data type. (#4355) 2024-03-17 22:04:37 +01:00
accounts.rs Small improvements around email change (#4415) 2024-03-17 19:55:03 +01:00
ciphers.rs Fix attachment upload size check (#4282) 2024-01-28 23:32:09 +01:00
emergency_access.rs Improve file limit handling (#4242) 2024-01-27 02:43:26 +01:00
events.rs Fix comment in events.rs (#4408) 2024-03-17 14:29:31 +01:00
folders.rs feat: Push Notifications 2023-06-11 13:28:18 +02:00
mod.rs Allow customizing the featureStates (#4168) 2024-01-01 15:44:02 +01:00
organizations.rs Fix #3624: fix manager permission within groups (#3754) 2024-03-17 22:11:34 +01:00
public.rs Fix External ID not set during DC Sync 2023-10-21 13:54:48 +02:00
sends.rs Improve file limit handling (#4242) 2024-01-27 02:43:26 +01:00