Browse Source

add user to collection during creation

Signed-off-by: Jan Jansen <jan.jansen@gdata.de>
pull/3609/head
Jan Jansen 1 year ago
committed by Mathijs van Veluw
parent
commit
84e901b7d2
  1. 4
      src/api/core/organizations.rs

4
src/api/core/organizations.rs

@ -424,6 +424,10 @@ async fn post_organization_collections(
.await?; .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())) Ok(Json(collection.to_json()))
} }

Loading…
Cancel
Save