From bf058bd5c6e07dae1cb4020fe4ce150ca8f9013b Mon Sep 17 00:00:00 2001 From: snipe Date: Fri, 26 Apr 2024 14:02:56 +0100 Subject: [PATCH] Use updated scopes Signed-off-by: snipe --- app/Http/Controllers/Api/AssetsController.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/Api/AssetsController.php b/app/Http/Controllers/Api/AssetsController.php index 57307acbb3..47ef7232f7 100644 --- a/app/Http/Controllers/Api/AssetsController.php +++ b/app/Http/Controllers/Api/AssetsController.php @@ -159,10 +159,13 @@ class AssetsController extends Controller if (Gate::allows('audit', Asset::class)) { switch ($audit) { case 'due': - $assets->DueOrOverdueForAudit($settings); + $assets->DueForAudit($settings); break; case 'overdue': - $assets->overdueForAudit($settings); + $assets->OverdueForAudit($settings); + break; + case 'duooroverdue': + $assets->DueOrOverdueForAudit($settings); break; } }