mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 13:44:06 -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)) {
|
if (Gate::allows('audit', Asset::class)) {
|
||||||
switch ($audit) {
|
switch ($audit) {
|
||||||
case 'due':
|
case 'due':
|
||||||
$assets->DueOrOverdueForAudit($settings);
|
$assets->DueForAudit($settings);
|
||||||
break;
|
break;
|
||||||
case 'overdue':
|
case 'overdue':
|
||||||
$assets->overdueForAudit($settings);
|
$assets->OverdueForAudit($settings);
|
||||||
|
break;
|
||||||
|
case 'duooroverdue':
|
||||||
|
$assets->DueOrOverdueForAudit($settings);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue