chenjunkai 6 năm trước cách đây
mục cha
commit
9184f95508
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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)