1
1
mirror of https://github.com/renbaoshuo/S2OJ.git synced 2025-03-22 15:47:04 +00:00

fix(web/contest/submission): problem managers cannot see final score

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

@ -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;