Fixed routing edit to use LegacyAuth (#9188)

This commit is contained in:
TheGreatDoc
2018-09-12 15:11:32 +02:00
committed by Tony Murray
parent e8cf6bb385
commit 6908063fae

View File

@@ -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',