Improved permission checks in AgentTicketPhone.