Browse Source

fix:perm is true bug

chenjunkai 6 years ago
parent
commit
1ed222bf24
1 changed files with 1 additions and 1 deletions
  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)