I have a custom module in which the user should only be able to navigate to a page in the frontend when the “Demo mode” setting is set to true in the configuration of the module. I am able to get the current state of the setting in the frontend, but don’t know how to go about enabling/disabling navigating to a specific page. Essentially when the setting “Demo mode” is turned of, the user shouldn’t even be able to open the page.
You may also like
I took over a developed magento shop and I was trying to solve an issue in which some products would not appear […]
Can a modern computer handle having a modern electric space heater plugged into the same AC circuit? For the sake of this […]
In OneNote for Windows (Office365) I signed into 2 work accounts on different domains (let’s call them A and B). Now OneNote […]
wget –no-parent –recursive –level=4 https://www.example.com/jsons/ I’m using the above line to try & download all files in subfolders of that URL. The […]