Skip to content

Commit

Permalink
Added access gate to the requested assets index
Browse files Browse the repository at this point in the history
Signed-off-by: snipe <snipe@snipe.net>
  • Loading branch information
snipe committed Apr 28, 2022
1 parent 126bb48 commit 2e9cf8f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/Http/Controllers/Assets/AssetsController.php
Expand Up @@ -861,6 +861,7 @@ public function auditStore(Request $request, $id)

public function getRequestedIndex($user_id = null)
{
$this->authorize('index', Asset::class);
$requestedItems = CheckoutRequest::with('user', 'requestedItem')->whereNull('canceled_at')->with('user', 'requestedItem');

if ($user_id) {
Expand Down

0 comments on commit 2e9cf8f

Please sign in to comment.