浏览代码

fix:perm is true bug

chenjunkai 6 年之前
父节点
当前提交
1ed222bf24
共有 1 个文件被更改,包括 1 次插入1 次删除
  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)