chenjunkai 6 жил өмнө
parent
commit
a49a7adb18

+ 2 - 1
Controller/UserManger.py

@@ -394,7 +394,8 @@ class setUserValidView(View):
             response.lang = tko.lang
             if tko.code == 0:
                 superID = tko.userID
-                if superID != None and superID != eUserID:
+                own_perm = ModelService.check_permission(userID=superID,permID=50)
+                if own_perm is True or superID != None and superID != eUserID:
                     if rid == None:
                         return self.UserValidUpdate(superID, eUserID, isValid, response)
                     else: