mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Restore vminfo menu (#10303)
This commit is contained in:
@@ -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')) {
|
||||
|
Reference in New Issue
Block a user