Procházet zdrojové kódy

fix:perm is true bug

chenjunkai před 6 roky
rodič
revize
1ed222bf24
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      Controller/MealManage.py

+ 1 - 1
Controller/MealManage.py

@@ -134,7 +134,7 @@ class MealManage(View):
         if not id or not title or not price or not content or not day:
             return response.json(444, 'id, title, price, content, day')
         own_perm = ModelService.check_perm(userID=userID, permID=30)
-        if own_perm is True:
+        if own_perm is not True:
             return response.json(404)
         try:
             store_meal = Store_Meal.objects.get(id=id)