fix(web/contest/submission): problem managers cannot see final score
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Baoshuo Ren 2022-11-12 10:14:54 +08:00
parent 79d6cd8a38
commit e2fbd6afe9
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

@ -65,7 +65,7 @@ trait UOJSubmissionLikeTrait {
}
public function userCanManageProblemOrContest(array $user = null) {
if ($this->problem->userCanManage($user)) {
if (!$this->problem instanceof UOJContestProblem && $this->problem->userCanManage($user)) {
return true;
} elseif ($this->problem instanceof UOJContestProblem && $this->problem->contest->userCanManage($user)) {
return true;