mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-24 04:03:34 -08:00
Fixed #4671 - corrected component checkin gate
This commit is contained in:
parent
86c0194e9a
commit
34f6d5ab45
|
@ -335,7 +335,7 @@ class ComponentsController extends Controller
|
||||||
return redirect()->route('components.index')->with('error',
|
return redirect()->route('components.index')->with('error',
|
||||||
trans('admin/components/message.not_found'));
|
trans('admin/components/message.not_found'));
|
||||||
}
|
}
|
||||||
$this->authorize('checkin', $component_assets);
|
$this->authorize('checkin', $component);
|
||||||
return view('components/checkin', compact('component_assets','component','asset'));
|
return view('components/checkin', compact('component_assets','component','asset'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue