Is granted function, and get ticket type