chenjunkai 6 年之前
父节点
当前提交
9184f95508
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Controller/MealManage.py

+ 1 - 1
Controller/MealManage.py

@@ -72,7 +72,7 @@ class MealManage(View):
 
     def add(self, request_dict, userID, response):
         own_perm = ModelService.check_permission(userID=userID, permID=40)
-        if own_perm is not None:
+        if own_perm is not True:
             return response.json(404)
         title = request_dict.get('title', None)
         id = request_dict.get('id', None)