https://en.wikipedia.org/wiki/Freedom_of_movement_for_worker...
They can also regulate the amount of traffic, that's included in the sovereign rights associated with docks.
This means they can both charge entry, and limit access in a given day. I expect flatly refusing entry to specific people would be a different story.