#182 Fixed this bug again for the tenth time... 😆
This commit is contained in:
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) {
|
function hesk_checkPermission($feature,$showerror=1) {
|
||||||
global $hesklang;
|
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> </p><p align="center"><a href="index.php">'.$hesklang['click_login'].'</a>');
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* Admins have full access to all features */
|
/* Admins have full access to all features */
|
||||||
if ($_SESSION['isadmin'])
|
if ($_SESSION['isadmin'])
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user