mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-22 20:08:42 +00:00
fix(web/problem/solution): problem manager can add solution
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
d5b6da80be
commit
7807752ca4
@ -26,7 +26,7 @@ function hasViewPermission($str, $user, $problem, $submission) {
|
||||
}
|
||||
|
||||
function hasViewSolutionPermission($str, $user, $problem) {
|
||||
if (isSuperUser($user)) {
|
||||
if (isSuperUser($user) || isProblemManager($user)) {
|
||||
return true;
|
||||
}
|
||||
if ($str == 'ALL') {
|
||||
|
Loading…
Reference in New Issue
Block a user