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 Jul 3, 2023
1 parent e7f083d commit a43065c
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.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()))
}

Expand Down

0 comments on commit a43065c

Please sign in to comment.