mirror of
https://github.com/bitwarden/server
synced 2026-03-01 10:51:26 +00:00
Seeder/resolve owner roster quirk (#7059)
This commit is contained in:
@@ -45,6 +45,13 @@ internal sealed class CreateRosterStep(string fixtureName) : IStep
|
||||
var orgUser = org.CreateOrganizationUserWithKey(
|
||||
user, orgUserType, OrganizationUserStatusType.Confirmed, userOrgKey);
|
||||
|
||||
// Promote the first owner-role user to pipeline owner
|
||||
if (orgUserType == OrganizationUserType.Owner && context.Owner is null)
|
||||
{
|
||||
context.Owner = user;
|
||||
context.OwnerOrgUser = orgUser;
|
||||
}
|
||||
|
||||
userLookup[emailPrefix] = orgUser.Id;
|
||||
|
||||
context.Users.Add(user);
|
||||
|
||||
Reference in New Issue
Block a user