Browse Source
Merge pull request #3609 from farodin91/add-user-to-collection-during-creation
add user to collection during creation
pull/3651/head
Daniel García
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
0 deletions
-
src/api/core/organizations.rs
|
|
@ -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())) |
|
|
|
} |
|
|
|
|
|
|
|