[minor] validate permission in Process Payroll and all products fix for home page
diff --git a/erpnext/templates/pages/home.html b/erpnext/templates/pages/home.html
index 790a430..b91cd73 100644
--- a/erpnext/templates/pages/home.html
+++ b/erpnext/templates/pages/home.html
@@ -26,9 +26,8 @@
{% endfor %}
</div>
</div>
- <!-- TODO: remove hardcoding of /products -->
<div class="text-center padding">
- <a href="/products" class="btn btn-primary all-products">
+ <a href="{{ homepage.products_url or "/products" }}" class="btn btn-primary all-products">
{{ _("View All Products") }}</a></div>
</div>
{% endif %}