Fix team profile auth recovery
This commit is contained in:
@@ -17,6 +17,14 @@ public static partial class AuthEndpoints
|
||||
return Results.Unauthorized();
|
||||
}
|
||||
|
||||
var teamMember = await FindTeamMemberForSessionAsync(db, session, context.RequestAborted);
|
||||
if (teamMember is not null)
|
||||
{
|
||||
return Results.Json(
|
||||
new { message = "Team-Accounts werden nicht ueber die automatische Teilnahme-Datenloeschung entfernt." },
|
||||
statusCode: StatusCodes.Status403Forbidden);
|
||||
}
|
||||
|
||||
var twitchUserId = session.TwitchUserId;
|
||||
await using var transaction = await db.Database.BeginTransactionAsync(context.RequestAborted);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user