Skip to content

Commit

Permalink
Security: Exercise: Do not permit access to questions review if the a…
Browse files Browse the repository at this point in the history
…ttempt is not of the connected user -refs BT#21295
  • Loading branch information
NicoDucou committed Dec 20, 2023
1 parent 7e4d11f commit 0b4df28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/exercise/exercise_reminder.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
$question_list = explode(',', $exercise_stat_info['data_tracking']);
}

if (empty($exercise_stat_info) || empty($question_list)) {
if (empty($exercise_stat_info) || empty($question_list) || $exercise_stat_info['exe_user_id'] != api_get_user_id()) {
api_not_allowed();
}

Expand Down

0 comments on commit 0b4df28

Please sign in to comment.