mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-24 05:04:07 -08:00
Added assignedTo scope
This commit is contained in:
parent
bcad49ce79
commit
3c6883489c
|
@ -209,7 +209,7 @@ class StatuslabelsController extends Controller
|
||||||
{
|
{
|
||||||
$this->authorize('view', Statuslabel::class);
|
$this->authorize('view', Statuslabel::class);
|
||||||
$this->authorize('index', Asset::class);
|
$this->authorize('index', Asset::class);
|
||||||
$assets = Asset::where('status_id','=',$id);
|
$assets = Asset::where('status_id','=',$id)->with('assignedTo');
|
||||||
|
|
||||||
$allowed_columns = [
|
$allowed_columns = [
|
||||||
'id',
|
'id',
|
||||||
|
|
Loading…
Reference in a new issue