mirror of
https://github.com/snipe/snipe-it.git
synced 2026-02-06 12:25:49 +00:00
Fixed #6349 - add view permission for print all assigned
This commit is contained in:
@ -613,6 +613,7 @@ class UsersController extends Controller
|
||||
*/
|
||||
public function printInventory($id)
|
||||
{
|
||||
$this->authorize('view', User::class);
|
||||
$show_user = User::where('id', $id)->withTrashed()->first();
|
||||
$assets = Asset::where('assigned_to', $id)->where('assigned_type', User::class)->with('model', 'model.category')->get();
|
||||
$accessories = $show_user->accessories()->get();
|
||||
|
||||
Reference in New Issue
Block a user