From a0958641ff0416f1e8456fc30fa7527f992817af Mon Sep 17 00:00:00 2001 From: Mike Koch Date: Sat, 29 Aug 2015 21:29:22 -0400 Subject: [PATCH] #331 Update admin_functions --- inc/admin_functions.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/admin_functions.inc.php b/inc/admin_functions.inc.php index 03224155..c518dd99 100644 --- a/inc/admin_functions.inc.php +++ b/inc/admin_functions.inc.php @@ -758,13 +758,13 @@ function hesk_checkPermission($feature,$showerror=1) { global $hesklang; /* Admins have full access to all features */ - if ($_SESSION['isadmin']) + if (isset($_SESSION['isadmin']) && $_SESSION['isadmin']) { return true; } /* Check other staff for permissions */ - if (strpos($_SESSION['heskprivileges'], $feature) === false) + if (isset($_SESSION['heskprivileges']) && strpos($_SESSION['heskprivileges'], $feature) === false) { if ($showerror) {