#182 Fixed this bug again for the tenth time... 😆

merge-requests/2/head
Mike Koch 9 years ago
parent 34d8882421
commit 2962d9cf3e

@ -715,6 +715,20 @@ function hesk_okCategory($cat,$error=1,$user_isadmin=false,$user_cat=false)
function hesk_checkPermission($feature,$showerror=1) {
global $hesklang;
/* Check if this is for managing settings */
if ($feature == 'can_manage_settings')
{
if ($_SESSION['can_manage_settings']) {
return true;
} else {
if ($showerror) {
hesk_error($hesklang['no_permission'].'<p>&nbsp;</p><p align="center"><a href="index.php">'.$hesklang['click_login'].'</a>');
} else {
return false;
}
}
}
/* Admins have full access to all features */
if ($_SESSION['isadmin'])
{

Loading…
Cancel
Save