From 6908063faec42a57fbfe30f81629e7761d8efb2a Mon Sep 17 00:00:00 2001 From: TheGreatDoc <32565115+TheGreatDoc@users.noreply.github.com> Date: Wed, 12 Sep 2018 15:11:32 +0200 Subject: [PATCH] Fixed routing edit to use LegacyAuth (#9188) --- html/includes/forms/routing-update.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/html/includes/forms/routing-update.inc.php b/html/includes/forms/routing-update.inc.php index 89ccd3d101..da20e3e5f7 100644 --- a/html/includes/forms/routing-update.inc.php +++ b/html/includes/forms/routing-update.inc.php @@ -12,11 +12,11 @@ * the source code distribution for details. */ -use LibreNMS\Authentication\Auth; +use LibreNMS\Authentication\LegacyAuth; header('Content-type: application/json'); -if (!Auth::user()->hasGlobalAdmin()) { +if (!LegacyAuth::user()->hasGlobalAdmin()) { $response = array( 'status' => 'error', 'message' => 'Need to be admin',