HelpSpot Help Desk Software | HelpSpot Blog | HelpSpot Support

Check if public note is from staff or customer


#1

Is there a way to check if an $event (within request.check.tpl.php) is from the customer or staff?


#2

Yes, there’s an array key for xPerson, if this is 0 it’s a customer, if it’s greater than 0 it’s a staffer.


#3

$event[‘xPerson’] did the trick. Thanks!