Procházet zdrojové kódy

uid管理员修改为可获得序列号

peng před 2 roky
rodič
revize
502fcd926e
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      Controller/SerialNumberController.py

+ 1 - 1
Controller/SerialNumberController.py

@@ -423,7 +423,7 @@ class SerialNumberView(View):
         if not allot_user_qs.exists():
             return response.json(444, 'username')
 
-        if allot_user_qs[0].permission != '2':
+        if allot_user_qs[0].permission not in ['1', '2']:
             return response.json(109)
 
         # 取出对应区域可用的UID分配给allot_user