Skip to content

Commit

Permalink
Revert "Make user ID 11 a temporary 'administrator'"
Browse files Browse the repository at this point in the history
This reverts commit 83903b5.
  • Loading branch information
veloek committed Jun 16, 2024
1 parent 83903b5 commit 78f2248
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion Tevling/Components/ChallengeCard.razor
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
<span>Congrats to all participants 👏</span>
<span>Now it's time to draw a winner 🏆</span>
</div>
@if (Challenge.CreatedById == AthleteId || IsAdmin)
@if (Challenge.CreatedById == AthleteId)
{
<button class="btn btn-primary mt-auto" data-bs-toggle="modal" data-bs-target="#drawWinner"
@onclick:stopPropagation="true">
Expand Down
1 change: 0 additions & 1 deletion Tevling/Components/ChallengeCard.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ public partial class ChallengeCard : ComponentBase

private DateTimeOffset? CurrentBrowserTime { get; set; }
private ScoreBoard? ScoreBoard { get; set; }
private bool IsAdmin => AthleteId == 11; // TEMP HACK

private string MeasurementIcon
{
Expand Down

0 comments on commit 78f2248

Please sign in to comment.