Hey all,
For the webshop, is there any way to restrict the route to ‘/all-products’?
I would like to use something like the code below, but I cannot find the file that handles the route (if any).
if frappe.session.user == "Guest":
frappe.throw(_("You need to be logged in to access this page"), frappe.PermissionError)