mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Re-implement Printer as a class based module (#12605)
* Re-implement Printer as a class based module * Rename toner table * wip * wip * Rename to printersupplies * Fixes * Rename * wip * wip
This commit is contained in:
@@ -32,10 +32,10 @@ use App\Models\Device;
|
||||
use App\Models\Mpls;
|
||||
use App\Models\OspfInstance;
|
||||
use App\Models\Port;
|
||||
use App\Models\PrinterSupply;
|
||||
use App\Models\Pseudowire;
|
||||
use App\Models\Sensor;
|
||||
use App\Models\Service;
|
||||
use App\Models\Toner;
|
||||
use App\Models\Vrf;
|
||||
use Cache;
|
||||
|
||||
@@ -98,7 +98,7 @@ class ObjectCache
|
||||
];
|
||||
}
|
||||
|
||||
if (Toner::hasAccess(auth()->user())->exists()) {
|
||||
if (PrinterSupply::hasAccess(auth()->user())->exists()) {
|
||||
$sensor_menu[3] = [
|
||||
[
|
||||
'class' => 'toner',
|
||||
|
Reference in New Issue
Block a user