vw_small

Hardened fork of Vaultwarden (https://github.com/dani-garcia/vaultwarden) with fewer features.
git clone https://git.philomathiclife.com/repos/vw_small
Log | Files | Refs | README

commit 664b480c716da1cf49c76714abd1b6bda3262755
parent 19e671ff25bffa47424b5af44264c2c74c2cc84b
Author: Daniel GarcĂ­a <dani-garcia@users.noreply.github.com>
Date:   Tue,  4 Jul 2023 20:53:46 +0200

Merge pull request #3609 from farodin91/add-user-to-collection-during-creation

add user to collection during creation
Diffstat:
Msrc/api/core/organizations.rs | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/api/core/organizations.rs b/src/api/core/organizations.rs @@ -424,6 +424,10 @@ async fn post_organization_collections( .await?; } + if headers.org_user.atype == UserOrgType::Manager && !headers.org_user.access_all { + CollectionUser::save(&headers.org_user.user_uuid, &collection.uuid, false, false, &mut conn).await?; + } + Ok(Json(collection.to_json())) }