From ba9b609fe4f2a48589e2c34748a5ef26d777dea6 Mon Sep 17 00:00:00 2001 From: zema1 Date: Sat, 18 Nov 2017 20:49:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E6=9B=B4=E6=96=B0displayID?= =?UTF-8?q?=E6=97=B6=E7=9A=84userid=E9=AA=8C=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- account/views/oj.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/account/views/oj.py b/account/views/oj.py index a4515533..4af6b824 100644 --- a/account/views/oj.py +++ b/account/views/oj.py @@ -387,11 +387,6 @@ class UserRankAPI(APIView): class ProfileProblemDisplayIDRefreshAPI(APIView): @login_required def get(self, request): - user_id = request.GET.get("user_id") - if not user_id: - return self.error("Invalid parameter, user_id is required") - if request.user.id != user_id: - return self.error("Only user self can require a refresh") profile = request.user.userprofile acm_problems = profile.acm_problems_status.get("problems", {}) oi_problems = profile.oi_problems_status.get("problems", {})