Fix MigrateTickets failure for view-restricted repositories
Merged #173 "Fix MigrateTickets failure for view-restricted repositories"