mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-24 05:04:07 -08:00
Added gate to supplier
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
de6f922e54
commit
1c0a96b0ce
|
@ -179,6 +179,7 @@ class SuppliersController extends Controller
|
||||||
*/
|
*/
|
||||||
public function show($supplierId = null)
|
public function show($supplierId = null)
|
||||||
{
|
{
|
||||||
|
$this->authorize('view', Supplier::class);
|
||||||
$supplier = Supplier::find($supplierId);
|
$supplier = Supplier::find($supplierId);
|
||||||
|
|
||||||
if (isset($supplier->id)) {
|
if (isset($supplier->id)) {
|
||||||
|
|
Loading…
Reference in a new issue