diff --git a/app/Http/Controllers/WorldController.php b/app/Http/Controllers/WorldController.php index e77ebddd45..e733874f07 100644 --- a/app/Http/Controllers/WorldController.php +++ b/app/Http/Controllers/WorldController.php @@ -307,7 +307,7 @@ public function getSpeciesFeatureDetail($speciesId, $id) { */ public function getItems(Request $request) { $query = Item::with('category'); - + if (!Auth::check() || !Auth::user()->isStaff) { $query->released(); } @@ -371,7 +371,7 @@ public function getItems(Request $request) { */ public function getItem($id) { $categories = ItemCategory::orderBy('sort', 'DESC')->get(); - + if (!Auth::check() || !Auth::user()->isStaff) { $item = Item::where('id', $id)->released()->first(); } else {