mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-09 16:38:41 +00:00
fix(web/contest/submission): problem managers cannot see final score
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
79d6cd8a38
commit
e2fbd6afe9
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user