diff --git a/.gitignore b/.gitignore index 3e42589..8264c45 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ uoj_data/ +uoj_data_1/ +uoj_data_2/ .php-cs-fixer.cache docker-compose.local.yml diff --git a/web/app/controllers/download.php b/web/app/controllers/download.php index e2c7e63..f888e00 100644 --- a/web/app/controllers/download.php +++ b/web/app/controllers/download.php @@ -41,8 +41,8 @@ become404Page(); } - if (!isProblemVisibleToUser($problem, $myUser)) { - become404Page(); + if (!hasProblemPermission($myUser, $problem)) { + become403Page(); } $id = $_GET['id']; @@ -56,7 +56,7 @@ become404Page(); } - if (!isProblemVisibleToUser($problem, $myUser)) { + if (!hasProblemPermission($myUser, $problem)) { become404Page(); } diff --git a/web/app/controllers/super_manage.php b/web/app/controllers/super_manage.php index a51453e..6333a3b 100644 --- a/web/app/controllers/super_manage.php +++ b/web/app/controllers/super_manage.php @@ -971,6 +971,7 @@ EOD,
  • 用户被封禁后将不能再次登录系统。
  • 将当前用户移除权限后将无法再次访问本页面。
  • 在修改用户类别前请仔细核对用户名以免产生不必要的麻烦。
  • +
  • 如需为用户设置题目上传者、题目管理员等权限,请前往对应用户的个人资料编辑页面,点击「特权」选项卡修改。