mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2025-04-20 16:44:36 +00:00
parent
ef774d2e97
commit
1ecf764bb7
@ -12,6 +12,17 @@
|
||||
become403Page();
|
||||
}
|
||||
|
||||
$solutions = DB::selectAll("select * from problems_solutions where blog_id = {$blog['id']}");
|
||||
if ($solutions) {
|
||||
foreach ($solutions as $solution) {
|
||||
$problem = queryProblemBrief($solution['problem_id']);
|
||||
|
||||
if (!hasProblemPermission($myUser, $problem) && isRegisteredRunningContestProblem($myUser, $problem)) {
|
||||
become403Page();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!isset($_COOKIE['bootstrap4'])) {
|
||||
$REQUIRE_LIB['bootstrap5'] = '';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user