mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Respect device access for health mempools page (#12356)
This commit is contained in:
@@ -51,10 +51,10 @@ class MempoolsController extends TableController
|
||||
protected function baseQuery($request)
|
||||
{
|
||||
if ($request->get('view') == 'graphs') {
|
||||
return Device::query()->has('mempools')->with('mempools');
|
||||
return Device::hasAccess($request->user())->has('mempools')->with('mempools');
|
||||
}
|
||||
|
||||
$query = Mempool::query()->with('device');
|
||||
$query = Mempool::hasAccess($request->user())->with('device');
|
||||
|
||||
// join devices table to sort by hostname or search
|
||||
if (array_key_exists('hostname', $request->get('sort', $this->default_sort)) || $request->get('searchPhrase')) {
|
||||
|
||||
Reference in New Issue
Block a user