Revert "Refactor challenge access checks and update text encoding: Remove unnecessary session variable in update and delete challenge functions. Update text in ChallengeManagement and ChallengesSection components for proper HTML encoding, enhancing display consistency."

This reverts commit 5e810202bb.
This commit is contained in:
Julien Froidefond
2025-12-15 16:01:26 +01:00
parent 5e810202bb
commit 177b34d70f
4 changed files with 9 additions and 9 deletions

View File

@@ -97,7 +97,7 @@ export async function updateChallenge(
}
) {
try {
await checkAdminAccess()
const session = await checkAdminAccess()
const challenge = await challengeService.updateChallenge(challengeId, {
title: data.title,
@@ -128,7 +128,7 @@ export async function updateChallenge(
export async function deleteChallenge(challengeId: string) {
try {
await checkAdminAccess()
const session = await checkAdminAccess()
await challengeService.deleteChallenge(challengeId)