Updated blades to add byod as a “status”

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe
2023-01-18 13:25:46 -08:00
parent fce620b54f
commit 0c39c7a53d
4 changed files with 20 additions and 0 deletions
@@ -271,6 +271,11 @@ class AssetsController extends Controller
// more sad, horrible workarounds for laravel bugs when doing full text searches
$assets->where('assets.assigned_to', '>', '0');
break;
case 'byod':
// This is kind of redundant, since we already check for byod=1 above, but this keeps the
// sidebar nav links a little less chaotic
$assets->where('assets.byod', '=', '1');
break;
default:
if ((! $request->filled('status_id')) && ($settings->show_archived_in_list != '1')) {