diff --git a/app/Http/Controllers/Assets/AssetsController.php b/app/Http/Controllers/Assets/AssetsController.php index e4a6e792af..111f0df6cf 100755 --- a/app/Http/Controllers/Assets/AssetsController.php +++ b/app/Http/Controllers/Assets/AssetsController.php @@ -521,7 +521,7 @@ class AssetsController extends Controller public function getBarCode($assetId = null) { $settings = Setting::getSettings(); - $asset = Asset::find($assetId); + $asset = Asset::withTrashed()->find($assetId); $barcode_file = public_path().'/uploads/barcodes/'.str_slug($settings->alt_barcode).'-'.str_slug($asset->asset_tag).'.png'; if (isset($asset->id, $asset->asset_tag)) { diff --git a/resources/views/users/view.blade.php b/resources/views/users/view.blade.php index c28a9079cf..8bee71384d 100755 --- a/resources/views/users/view.blade.php +++ b/resources/views/users/view.blade.php @@ -218,6 +218,12 @@ @endif @endcan + @can('update', $user) +