mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-09-11 19:25:56 +03:00
prevent side effects if groups are disabled (#4265)
This commit is contained in:
@@ -294,7 +294,7 @@ async fn post_organization(
|
||||
async fn get_user_collections(headers: Headers, mut conn: DbConn) -> Json<Value> {
|
||||
Json(json!({
|
||||
"Data":
|
||||
Collection::find_by_user_uuid(headers.user.uuid.clone(), &mut conn).await
|
||||
Collection::find_by_user_uuid(headers.user.uuid, &mut conn).await
|
||||
.iter()
|
||||
.map(Collection::to_json)
|
||||
.collect::<Value>(),
|
||||
|
Reference in New Issue
Block a user