Kirin 3 năm trước cách đây
mục cha
commit
ef6b995464
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      app/api/controller/store/CategoryController.php

+ 1 - 1
app/api/controller/store/CategoryController.php

@@ -19,7 +19,7 @@ class CategoryController
             $admin = SystemAdmin::where('id', $user['admin_id'])->find();
             $store_user = SystemStore::where('id', $admin['store_id'] ?? 0)->value('see');
         }
-        if ($store_user) {
+        if (!$store_user) {
             $model = $model->where('only_store_user', 0);
         }
         $cateogry = $model->select();