Skip to content

Commit

Permalink
add user to collection during creation
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Jansen <jan.jansen@gdata.de>
  • Loading branch information
farodin91 committed Jun 23, 2023
1 parent 2aedff5 commit fbcfba5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/api/core/organizations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,10 @@ async fn post_organization_collections(
.await?;
}

if !headers.org_user.access_all {
CollectionUser::save(&headers.org_user.user_uuid, &collection.uuid, false, false, &mut conn).await?;
}

Ok(Json(collection.to_json()))
}

Expand Down

0 comments on commit fbcfba5

Please sign in to comment.