getTypeU(); $permissions = $user2->permissionCheck("5"); $track = new Tracking($tID); $isStat = $track->isStatus($status); $isAssign = $track->isAssign($user); $isPriority = $track->isPriority($priority); if($permissions) { if(!$isStat) { $track->setStatus($status); } if(!$isAssign) { $track->setAssign($user); } if(!$isPriority) { $track->setPriority($priority); } } else { if((!$isStat) || (!$isAssign)) { $badperms = true; } } $trimmedFollowup = trim($newfollowup); if($trimmedFollowup != "") { $follow = new Followup(); $follow->setAuthor($IRMName); $follow->setFollowupInfo($newfollowup); $follow->setDateEntered($date); $track->addFollowup($follow); } $track->commit(); if($status == "complete" && $addtoknowledgebase == "yes" && $permissions) { header("Location: $USERPREFIX/kb/article-add.php?from_tracking=$tID"); } else { if($badperms) { PRINT "Since you are not a technician or administrator, you can not change"; PRINT "the status of this ticket, nor who it is assigned to.
You are $IRMName\n"; } header("Location: $HTTP_REFERER"); } if("$is_group"=="yes") { $logtext="$name"; } else { $logtext="$name"; } logevent($tID, $logtext, 4, "ticket", "Ticket modified by $IRMName"); ?>