mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2025-09-26 23:09:21 +08:00
修复越权访问
This commit is contained in:
parent
f51eb03ec8
commit
a82f294ad4
@ -359,7 +359,7 @@ def contest_problem_page(request, contest_id, contest_problem_id):
|
||||
"""
|
||||
contest = Contest.objects.get(id=contest_id)
|
||||
try:
|
||||
problem = ContestProblem.objects.get(id=contest_problem_id, visible=True)
|
||||
problem = ContestProblem.objects.get(contest=contest, id=contest_problem_id, visible=True)
|
||||
except ContestProblem.DoesNotExist:
|
||||
return error_page(request, u"比赛题目不存在")
|
||||
warning = u"您已经提交过本题的正确答案,重复提交可能造成时间累计。"
|
||||
|
Loading…
Reference in New Issue
Block a user