Use Cut on the door covered in dots. That is how you get through.
The Rainbow Pass gives you access to the Sevii Islands, and several of the routes there are gated by these dotted barriers rather than by any puzzle. Standing in front of one and using Cut from your menu removes it.
If nothing happens when you try, check that the Pokémon in your party actually knows Cut and that you have the corresponding badge, since the game silently blocks the move otherwise. That trips up more people than the door itself does.
Battle Islands Tips and Strategy Guide for Gold and Victory
Black Ops 3's Ending, Untangled: Corvus, Taylor, and the Player
Star Wars Battlefront: Tips, Tricks and Everything Worth Knowing
Paranormal Crime Investigations: Brotherhood of the Crescent Snake — Complete Walkthrough, Guide & Tips
D4: Dark Dreams Don't Die Achievements Guide for Xbox One