From 83903b53ccb692822aa3ea4d587a6fd96363f29a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vegard=20L=C3=B8kken?= Date: Fri, 14 Jun 2024 12:35:52 +0200 Subject: [PATCH] Make user ID 11 a temporary 'administrator' To allow someone else than the challenge creator to draw the winner of the challenge. This is a TEMPORARY change that will be reverted once the draw is made. --- Tevling/Components/ChallengeCard.razor | 2 +- Tevling/Components/ChallengeCard.razor.cs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Tevling/Components/ChallengeCard.razor b/Tevling/Components/ChallengeCard.razor index 31c4bb4..f12a347 100644 --- a/Tevling/Components/ChallengeCard.razor +++ b/Tevling/Components/ChallengeCard.razor @@ -50,7 +50,7 @@ Congrats to all participants 👏 Now it's time to draw a winner 🏆 - @if (Challenge.CreatedById == AthleteId) + @if (Challenge.CreatedById == AthleteId || IsAdmin) {