added checking for custom roles, ticket_deletion

just checks for custom role and prevents attempt at using app if ticket_deletion is not true.