mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-22 08:58:42 +00:00
fix(web/submission_list): sql for view permission
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
e1a4c8ffa3
commit
f3ce28c1f7
@ -392,13 +392,13 @@ function echoSubmissionsList($cond, $tail, $config, $user) {
|
||||
if (!isProblemManager($user)) {
|
||||
if ($user != null) {
|
||||
$permission_cond = DB::lor([
|
||||
"submissions.is_hidden" => "false",
|
||||
"submissions.is_hidden" => false,
|
||||
"submissions.submitter" => $user['username'],
|
||||
DB::land([
|
||||
"submissions.is_hidden" => true,
|
||||
DB::lor([
|
||||
"submissions.problem_id in (select problem_id from problems_permissions where username = '{$user['username']}')",
|
||||
"submissions.problem_id in (select id from problems where uploader = '{$user['username']}'))",
|
||||
"submissions.problem_id in (select id from problems where uploader = '{$user['username']}')",
|
||||
]),
|
||||
]),
|
||||
]);
|
||||
|
Loading…
Reference in New Issue
Block a user