diff --git a/app/Http/Controllers/Assets/AssetsController.php b/app/Http/Controllers/Assets/AssetsController.php index 111f0df6cf..e4a6e792af 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::withTrashed()->find($assetId); + $asset = Asset::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 8bee71384d..c28a9079cf 100755 --- a/resources/views/users/view.blade.php +++ b/resources/views/users/view.blade.php @@ -218,12 +218,6 @@ @endif @endcan - @can('update', $user) -