Fix permission

This commit is contained in:
cuom1999 2022-06-16 14:56:02 +07:00
parent eb44b6510a
commit 2baa17f9dd

View file

@ -20,7 +20,7 @@ def submission_layout(
if user.has_perm("judge.view_all_submission"):
can_view = True
if user.has_perm("judge.view_public_submission"):
if submission.problem.is_public and user.has_perm("judge.view_public_submission"):
can_view = True
if submission.problem_id in completed_problem_ids: