Fix permission
This commit is contained in:
parent
eb44b6510a
commit
2baa17f9dd
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ def submission_layout(
|
||||||
if user.has_perm("judge.view_all_submission"):
|
if user.has_perm("judge.view_all_submission"):
|
||||||
can_view = True
|
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
|
can_view = True
|
||||||
|
|
||||||
if submission.problem_id in completed_problem_ids:
|
if submission.problem_id in completed_problem_ids:
|
||||||
|
|
Loading…
Reference in a new issue