@@ 99-102 (lines=4) @@ | ||
96 | ||
97 | if($xhelp_isStaff){ |
|
98 | $checkStaff =& $hStaff->getByUid($xoopsUser->getVar('uid')); |
|
99 | if(!$hasRights = $checkStaff->checkRoleRights(XHELP_SEC_TICKET_ADD)){ |
|
100 | $message = _XHELP_MESSAGE_NO_ADD_TICKET; |
|
101 | redirect_header(XHELP_BASE_URL."/index.php", 3, $message); |
|
102 | } |
|
103 | unset($checkStaff); |
|
104 | ||
105 | if($hasRights = $xhelp_staff->checkRoleRights(XHELP_SEC_TICKET_OWNERSHIP, $dept_id)){ |
@@ 695-698 (lines=4) @@ | ||
692 | break; |
|
693 | ||
694 | case "updatePriority": |
|
695 | if(!$hasRights = $xhelp_staff->checkRoleRights(XHELP_SEC_TICKET_ADD)){ |
|
696 | $message = _XHELP_MESSAGE_NO_ADD_TICKET; |
|
697 | redirect_header(XHELP_BASE_URL."/index.php", 3, $message); |
|
698 | } |
|
699 | ||
700 | if(isset($_POST['priority'])){ |
|
701 | $priority = $_POST['priority']; |