Skip to content

Commit 8a7f509

Browse files
committed
modified anon merge logic
1 parent 742e286 commit 8a7f509

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Confab/Services/UserService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ private async Task MergeAnonAccount(UserSchema authenticatedUser, UserSchema ano
376376
}
377377

378378
// if authenticatedUser previously did not have comments, change authenticatedUser's publicId to anonUser's publicId
379-
if (authUserInitialCommentCount != 0)
379+
if (authUserInitialCommentCount != 0 && authenticatedUser.Role != UserRole.Admin) // don't change publicId for admin
380380
{
381381
authenticatedUser.PublicId = anonUser.PublicId;
382382
}

0 commit comments

Comments
 (0)