Explorar o código

fix:perm is true bug

chenjunkai %!s(int64=6) %!d(string=hai) anos
pai
achega
1ed222bf24
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)