mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-26 05:01:06 -08:00
Remove unneeded AuthorizesRequests
This commit is contained in:
parent
9e06f2d17f
commit
9793016603
|
@ -3,18 +3,12 @@
|
||||||
namespace App\Livewire;
|
namespace App\Livewire;
|
||||||
|
|
||||||
use App\Models\CustomField;
|
use App\Models\CustomField;
|
||||||
use Livewire\Component;
|
|
||||||
|
|
||||||
use App\Models\Import;
|
use App\Models\Import;
|
||||||
use Illuminate\Support\Facades\Storage;
|
use Illuminate\Support\Facades\Storage;
|
||||||
|
use Livewire\Component;
|
||||||
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
|
|
||||||
|
|
||||||
|
|
||||||
class Importer extends Component
|
class Importer extends Component
|
||||||
{
|
{
|
||||||
use AuthorizesRequests;
|
|
||||||
|
|
||||||
public $files;
|
public $files;
|
||||||
|
|
||||||
public $progress; //upload progress - '-1' means don't show
|
public $progress; //upload progress - '-1' means don't show
|
||||||
|
@ -75,8 +69,6 @@ class Importer extends Component
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
private function getColumns($type)
|
private function getColumns($type)
|
||||||
{
|
{
|
||||||
switch ($type) {
|
switch ($type) {
|
||||||
|
@ -161,7 +153,6 @@ class Importer extends Component
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public function mount()
|
public function mount()
|
||||||
{
|
{
|
||||||
$this->authorize('import');
|
$this->authorize('import');
|
||||||
|
|
Loading…
Reference in a new issue