mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix isDemo calls (#10498)
This commit is contained in:
@@ -6,7 +6,7 @@ $no_refresh = true;
|
|||||||
|
|
||||||
if (!Auth::user()->hasGlobalAdmin()) {
|
if (!Auth::user()->hasGlobalAdmin()) {
|
||||||
include 'includes/html/error-no-perm.inc.php';
|
include 'includes/html/error-no-perm.inc.php';
|
||||||
} elseif (Auth::user()->isDemoUser()) {
|
} elseif (Auth::user()->isDemo()) {
|
||||||
demo_account();
|
demo_account();
|
||||||
} else {
|
} else {
|
||||||
echo '<h3>Add User</h3>';
|
echo '<h3>Add User</h3>';
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ if (!Auth::user()->hasGlobalAdmin()) {
|
|||||||
|
|
||||||
$pagetitle[] = "Delete device";
|
$pagetitle[] = "Delete device";
|
||||||
|
|
||||||
if (Auth::user()->isDemoUser()) {
|
if (Auth::user()->isDemo()) {
|
||||||
demo_account();
|
demo_account();
|
||||||
} else {
|
} else {
|
||||||
if (is_numeric($_REQUEST['id'])) {
|
if (is_numeric($_REQUEST['id'])) {
|
||||||
|
|||||||
Reference in New Issue
Block a user