mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Added access gate to the requested assets index
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
126bb486b5
commit
2e9cf8fa87
|
@ -861,6 +861,7 @@ class AssetsController extends Controller
|
||||||
|
|
||||||
public function getRequestedIndex($user_id = null)
|
public function getRequestedIndex($user_id = null)
|
||||||
{
|
{
|
||||||
|
$this->authorize('index', Asset::class);
|
||||||
$requestedItems = CheckoutRequest::with('user', 'requestedItem')->whereNull('canceled_at')->with('user', 'requestedItem');
|
$requestedItems = CheckoutRequest::with('user', 'requestedItem')->whereNull('canceled_at')->with('user', 'requestedItem');
|
||||||
|
|
||||||
if ($user_id) {
|
if ($user_id) {
|
||||||
|
|
Loading…
Reference in a new issue