diff --git a/templates/backOffice/default/home.html b/templates/backOffice/default/home.html
index 0204fe4c7..4eefb609a 100644
--- a/templates/backOffice/default/home.html
+++ b/templates/backOffice/default/home.html
@@ -8,6 +8,7 @@
{module_include location='home_top'}
+ {loop type="auth" name="can_view" role="ADMIN" resource="admin.order" access="VIEW"}
-
-
-
{intl l="Shop Informations"}
-
-
-
-
- | {intl l="Customers"} |
-
- {count type="customer" current="false" backend_context="1"}
- |
-
-
- | {intl l="Categories"} |
-
- {count type="category" visible="*" backend_context="1"}
- |
-
-
- | {intl l="Products"} |
-
- {count type="product" visible="*" backend_context="1"}
- |
-
-
- | {intl l="Online products"} |
-
- {count type="product" visible="true" backend_context="1"}
- |
-
-
- | {intl l="Offline products"} |
-
- {count type="product" visible="false" backend_context="1"}
- |
-
-
- | {intl l="Orders"} |
-
- {count type="order" status="*" backend_context="1"}
- |
-
-
-
-
-
-
+ {* Do not display shop information block if user none of the required authorizations *}
+
+ {capture name="shop_information_block_content"}
+ {loop type="auth" name="can_view" role="ADMIN" resource="admin.customer" access="VIEW"}
+
+ | {intl l="Customers"} |
+
+ {count type="customer" current="false" backend_context="1"}
+ |
+
+ {/loop}
+
+ {loop type="auth" name="can_view" role="ADMIN" resource="admin.category" access="VIEW"}
+
+ | {intl l="Categories"} |
+
+ {count type="category" visible="*" backend_context="1"}
+ |
+
+ {/loop}
+
+ {loop type="auth" name="can_view" role="ADMIN" resource="admin.product" access="VIEW"}
+
+ | {intl l="Products"} |
+
+ {count type="product" visible="*" backend_context="1"}
+ |
+
+
+ | {intl l="Online products"} |
+
+ {count type="product" visible="true" backend_context="1"}
+ |
+
+
+ | {intl l="Offline products"} |
+
+ {count type="product" visible="false" backend_context="1"}
+ |
+
+ {/loop}
+
+ {loop type="auth" name="can_view" role="ADMIN" resource="admin.order" access="VIEW"}
+
+ | {intl l="Orders"} |
+
+ {count type="order" status="*" backend_context="1"}
+ |
+
+ {/loop}
+ {/capture}
+
+ {if trim($smarty.capture.shop_information_block_content) ne ""}
+
+
+
{intl l="Shop Informations"}
+
+
+
+ {$smarty.capture.shop_information_block_content nofilter}
+
+
+
+
+
+ {/if}
+
+ {loop type="auth" name="can_view" role="ADMIN" resource="admin.order" access="VIEW"}
{intl l="Sales statistics"}
@@ -221,6 +243,7 @@
+ {/loop}