Menu and Tabs

Hello,

I have an app that makes use of a side menu and tabs together. From both I can access the same page that is the detail of a parent page in the tabs part and also has direct access to it from the side menu.

How can I make the menu button not show when the access is not from the menu?

thank you