mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 14:27:33 -08:00
Remove dead code
This commit is contained in:
parent
9b22d6d493
commit
2137890496
|
@ -192,9 +192,6 @@ class AccessoriesController extends Controller
|
||||||
$this->authorize('view', Accessory::class);
|
$this->authorize('view', Accessory::class);
|
||||||
|
|
||||||
$accessory = Accessory::with('lastCheckout')->findOrFail($id);
|
$accessory = Accessory::with('lastCheckout')->findOrFail($id);
|
||||||
if (! Company::isCurrentUserHasAccess($accessory)) {
|
|
||||||
return ['total' => 0, 'rows' => []];
|
|
||||||
}
|
|
||||||
|
|
||||||
$offset = request('offset', 0);
|
$offset = request('offset', 0);
|
||||||
$limit = request('limit', 50);
|
$limit = request('limit', 50);
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
namespace Database\Factories;
|
namespace Database\Factories;
|
||||||
|
|
||||||
use App\Models\Accessory;
|
use App\Models\Accessory;
|
||||||
use App\Models\AccessoryCheckout;
|
|
||||||
use App\Models\Category;
|
use App\Models\Category;
|
||||||
use App\Models\Location;
|
use App\Models\Location;
|
||||||
use App\Models\Manufacturer;
|
use App\Models\Manufacturer;
|
||||||
|
|
Loading…
Reference in a new issue