chenjunkai 6 years ago
parent
commit
a49a7adb18
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Controller/UserManger.py

+ 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: