I Cloned CoinMarketCap Diamonds - Advanced Question

Awesome tutorial, but need some help understanding if there is an easy way to hide this functionality behind a gate. For example, if the user owns my NFT, then they can access the tab. Is there any tutorials showing how to do this with Moralis ?

I saw an example of web3 logic along the lines of this a while back but not sure how to implement it with the boiler plate:

const contract = new web3.eth.Contract(contractAbi, contractAddress);
const tokenBalance = await contract.methods.balanceOf(walletAddress).call();
if tokenBalance > 0 { do stuff
}

Youtube tutorial for reference