Restore vminfo menu (#10303)

This commit is contained in:
Tony Murray
2019-06-03 19:15:13 -05:00
committed by GitHub
parent 6f6e8e9f1c
commit 1c1b07fee5
3 changed files with 15 additions and 0 deletions

View File

@@ -33,6 +33,7 @@ use App\Models\Location;
use App\Models\Notification;
use App\Models\Package;
use App\Models\User;
use App\Models\Vminfo;
use App\Models\WirelessSensor;
use Auth;
use Illuminate\View\View;
@@ -68,6 +69,7 @@ class MenuComposer
$vars['locations'] = (Config::get('show_locations') && Config::get('show_locations_dropdown')) ?
Location::hasAccess($user)->where('location', '!=', '')->orderBy('location')->get(['location', 'id']) :
collect();
$vars['show_vmwinfo'] = Vminfo::hasAccess($user)->exists();
// Service menu
if (Config::get('show_services')) {