Kirin 3 years ago
parent
commit
ef6b995464
1 changed files with 1 additions and 1 deletions
  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();