mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fixed routing edit to use LegacyAuth (#9188)
This commit is contained in:
@@ -12,11 +12,11 @@
|
|||||||
* the source code distribution for details.
|
* the source code distribution for details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
use LibreNMS\Authentication\Auth;
|
use LibreNMS\Authentication\LegacyAuth;
|
||||||
|
|
||||||
header('Content-type: application/json');
|
header('Content-type: application/json');
|
||||||
|
|
||||||
if (!Auth::user()->hasGlobalAdmin()) {
|
if (!LegacyAuth::user()->hasGlobalAdmin()) {
|
||||||
$response = array(
|
$response = array(
|
||||||
'status' => 'error',
|
'status' => 'error',
|
||||||
'message' => 'Need to be admin',
|
'message' => 'Need to be admin',
|
||||||
|
|||||||
Reference in New Issue
Block a user