mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-24 21:24:13 -08:00
Use updated scopes
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
dfaf01e8aa
commit
bf058bd5c6
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue