mirror of
https://github.com/bitwarden/server.git
synced 2026-02-07 09:23:10 +08:00
24 lines
573 B
C#
24 lines
573 B
C#
using Bit.Core.Entities;
|
|
|
|
namespace Bit.Seeder.Factories;
|
|
|
|
internal static class CollectionUserSeeder
|
|
{
|
|
internal static CollectionUser Create(
|
|
Guid collectionId,
|
|
Guid organizationUserId,
|
|
bool readOnly = false,
|
|
bool hidePasswords = false,
|
|
bool manage = false)
|
|
{
|
|
return new CollectionUser
|
|
{
|
|
CollectionId = collectionId,
|
|
OrganizationUserId = organizationUserId,
|
|
ReadOnly = readOnly,
|
|
HidePasswords = hidePasswords,
|
|
Manage = manage
|
|
};
|
|
}
|
|
}
|