#331 Update admin_functions

This commit is contained in:
Mike Koch 2015-08-29 21:29:22 -04:00
parent 3619a4c507
commit a0958641ff

View File

@ -758,13 +758,13 @@ function hesk_checkPermission($feature,$showerror=1) {
global $hesklang; global $hesklang;
/* Admins have full access to all features */ /* Admins have full access to all features */
if ($_SESSION['isadmin']) if (isset($_SESSION['isadmin']) && $_SESSION['isadmin'])
{ {
return true; return true;
} }
/* Check other staff for permissions */ /* Check other staff for permissions */
if (strpos($_SESSION['heskprivileges'], $feature) === false) if (isset($_SESSION['heskprivileges']) && strpos($_SESSION['heskprivileges'], $feature) === false)
{ {
if ($showerror) if ($showerror)
{ {