fix(web/problem/solution): problem manager can add solution
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Baoshuo Ren 2022-10-16 10:18:49 +08:00
parent d5b6da80be
commit 7807752ca4
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

@ -26,7 +26,7 @@ function hasViewPermission($str, $user, $problem, $submission) {
} }
function hasViewSolutionPermission($str, $user, $problem) { function hasViewSolutionPermission($str, $user, $problem) {
if (isSuperUser($user)) { if (isSuperUser($user) || isProblemManager($user)) {
return true; return true;
} }
if ($str == 'ALL') { if ($str == 'ALL') {