Explorar el Código

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

peng hace 2 años
padre
commit
502fcd926e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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