1
0
mirror of https://github.com/bitwarden/server.git synced 2025-06-30 15:42:48 -05:00

[AC-1872] Manage permission on importing data is placed behind FC feature flag (#3496)

Co-authored-by: Thomas Rittson <31796059+eliykat@users.noreply.github.com>
This commit is contained in:
Rui Tomé
2023-12-01 15:19:08 +00:00
committed by GitHub
parent 85df9716d8
commit f46ea0bf3b
2 changed files with 73 additions and 6 deletions

View File

@ -788,12 +788,15 @@ public class CipherService : ICipherService
{
collection.SetNewId();
newCollections.Add(collection);
newCollectionUsers.Add(new CollectionUser
if (UseFlexibleCollections)
{
CollectionId = collection.Id,
OrganizationUserId = importingOrgUser.Id,
Manage = true
});
newCollectionUsers.Add(new CollectionUser
{
CollectionId = collection.Id,
OrganizationUserId = importingOrgUser.Id,
Manage = true
});
}
}
}