We are transferring our store to 2.0. In our previous store, we had this code:
This was in a collection template. The point of this code is to only let customers that have a certain tag see a collection page. The link to this collection page is also only displayed if they have the correct tag. In the past we put the code within an if statement so that if someone tried to input the url to one of these collections, they would not have access to it. I’m using the newest version of Impulse theme. I know that I can’t nest sections within sections. I tried just pasting the section called into a new section but the collections have settings and blocks that are specified in the template json file. For example, collection.json. Since I don’t have the blocks and settings, this is only displayed instead of the collection.

