Taking ships in trade cities

I was about to start my trade run today at jita and as soon as i unpiloted my ship’s computer was mined by turq and of course i couldn’t do anything because it’s a trade city, is this legal? and if it is why? Because i could do nothing but stare at him take my stuff, i have no trade ship now bc it was stolen in front of my eyes, i really don’t think this should be legal at all, it’s completely unfair. anyways i just want to know if it is legal.

It’s perfectly legal. If you know the city owner will harm ships of yours, don’t trade there. Given, if he wasn’t the leader and didn’t have direct permission, then we would have an issue.