Hello Guys,
i'm trying to add a new link to the admin menu under the point "staff".
I did it so that it appears but if i click the link it shows me a message that i maybe haven't the permission to see the content.
I'm new to the osTicket and in the programming as well thats why i don't get it why it don't works. Maybe someone could help me?
Here is the code:
case 'staff':
$page='staffmembers.inc.php';
if(($id=$_REQUEST?$_REQUEST:$_POST) && is_numeric($id)) {
$staff = new Staff($id);
if(!$staff || !is_object($staff) || $staff->getId()!=$id) {
$staff=null;
$errors='Kann keine Informationen über Mitarbeiter holen ID#'.$id;
}
}
$page=($staff or ($_REQUEST=='new' && !$uID))?'staff.inc.php':'staffmembers.inc.php';
break;
case 'firma':
$page = "stafffirma.inc.php";
include($page);
break;
the point at "case 'staff'" ist the original code and the point at "case 'firma'" is my code.