Added assignedTo scope

This commit is contained in:
snipe 2020-08-25 20:37:30 -07:00
parent bcad49ce79
commit 3c6883489c
No known key found for this signature in database
GPG key ID: 10BFFDA3ED34B5AC

View file

@ -209,7 +209,7 @@ class StatuslabelsController extends Controller
{
$this->authorize('view', Statuslabel::class);
$this->authorize('index', Asset::class);
$assets = Asset::where('status_id','=',$id);
$assets = Asset::where('status_id','=',$id)->with('assignedTo');
$allowed_columns = [
'id',