fix(audit): durcir les validations de securite

This commit is contained in:
GGThed
2026-08-17 13:51:37 -04:00
parent 06508cc7d6
commit f84cb4e3b6
5 changed files with 149 additions and 19 deletions
+6 -1
View File
@@ -661,7 +661,7 @@ function renderMergedDisponibilityGrid() {
}
dayRow += '<div class="' + cssClass + '" data-day="' + day.value + '" data-time="' + slotData.time + '" ' +
'onclick="toggleTimeSlot(' + day.value + ', \'' + slotData.time + '\', this)">' +
'data-action="toggle-time-slot">' +
slotData.display +
'<span class="merged-disponibility-count">' + count + '</span>' +
'</div>';
@@ -1120,6 +1120,11 @@ function togglePresence(matchId, participantId, badgeEl) {
registerActions({
'toggle-match-type': toggleMatchType,
'clear-time-selection': clearTimeSelection,
'toggle-time-slot': function (element) {
toggleTimeSlot(parseInt(element.getAttribute('data-day'), 10),
element.getAttribute('data-time'),
element);
},
'update-randomize-preview': updateRandomizePreview,
'randomize-teams': randomizeTeams,
'return-to-pool': returnToPool,