diff options
author | Matlink <[email protected]> | 2024-03-17 22:11:34 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2024-03-17 22:11:34 +0100 |
commit | 7c3cad197c9144977164d2b66e70c206b3b771d9 (patch) | |
tree | 8b26cf72cd10508419d126a850154705bd392ab4 /.env.template | |
parent | 000c6060297cf96d4f3d3891ebf53d72c2064e72 (diff) | |
download | vaultwarden-7c3cad197c9144977164d2b66e70c206b3b771d9.tar.gz vaultwarden-7c3cad197c9144977164d2b66e70c206b3b771d9.zip |
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 <[email protected]>
* 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 <[email protected]>
* chore(fmt): apply rustfmt
---------
Co-authored-by: Stefan Melmuk <[email protected]>
Co-authored-by: Stefan Melmuk <[email protected]>
Co-authored-by: Mathijs van Veluw <[email protected]>
Diffstat (limited to '.env.template')
0 files changed, 0 insertions, 0 deletions