fix(user): accepted problems list
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Baoshuo Ren 2023-02-20 10:25:57 +08:00
parent d7741c2910
commit a35883a215
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

@ -326,6 +326,7 @@
<ul class="nav uoj-ac-problems-list"> <ul class="nav uoj-ac-problems-list">
<?php foreach ($ac_problems as $prob) : ?> <?php foreach ($ac_problems as $prob) : ?>
<?php $problem = UOJProblem::query($prob['problem_id']) ?> <?php $problem = UOJProblem::query($prob['problem_id']) ?>
<?php if ($problem) : ?>
<?php if ($problem->userCanView(Auth::user())) : ?> <?php if ($problem->userCanView(Auth::user())) : ?>
<li class="nav-item"> <li class="nav-item">
<?= $problem->getLink(['with' => 'id', 'class' => 'nav-link rounded uoj-ac-problems-list-item']) ?> <?= $problem->getLink(['with' => 'id', 'class' => 'nav-link rounded uoj-ac-problems-list-item']) ?>
@ -337,6 +338,7 @@
</a> </a>
</li> </li>
<?php endif ?> <?php endif ?>
<?php endif ?>
<?php endforeach ?> <?php endforeach ?>
<?php if (empty($ac_problems)) : ?> <?php if (empty($ac_problems)) : ?>