mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-02 08:21:09 -08:00
parent
9e4ac018ea
commit
399e70763b
|
@ -645,7 +645,7 @@ class Asset extends Depreciable
|
||||||
public function scopeRequestableAssets($query)
|
public function scopeRequestableAssets($query)
|
||||||
{
|
{
|
||||||
|
|
||||||
return $query->where('requestable', '=', 1)
|
return Company::scopeCompanyables($query->where('requestable', '=', 1))
|
||||||
->whereHas('assetstatus', function ($query) {
|
->whereHas('assetstatus', function ($query) {
|
||||||
|
|
||||||
$query->where('deployable', '=', 1)
|
$query->where('deployable', '=', 1)
|
||||||
|
|
Loading…
Reference in a new issue