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 27, 2023
1 parent e7f083d commit fef124d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/api/core/organizations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,11 @@ async fn post_organization_collections(
.await?;
}

if headers.org_user.atype == UserOrgType::Manager
{
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 fef124d

Please sign in to comment.