Restrict actions in TicketsController based on permissions and hidden links