diff --git a/core/lib/Thelia/Config/Resources/routing/admin.xml b/core/lib/Thelia/Config/Resources/routing/admin.xml index d77245421..f2b1c6f35 100755 --- a/core/lib/Thelia/Config/Resources/routing/admin.xml +++ b/core/lib/Thelia/Config/Resources/routing/admin.xml @@ -1123,7 +1123,7 @@ - + Thelia\Controller\Admin\UpdateController::indexAction diff --git a/core/lib/Thelia/Core/Security/Resource/AdminResources.php b/core/lib/Thelia/Core/Security/Resource/AdminResources.php index ec2657e2b..314038e67 100644 --- a/core/lib/Thelia/Core/Security/Resource/AdminResources.php +++ b/core/lib/Thelia/Core/Security/Resource/AdminResources.php @@ -104,5 +104,5 @@ final class AdminResources const TRANSLATIONS = "admin.configuration.translations"; - const UPDATE = "admin.update"; + const UPDATE = "admin.configuration.update"; } diff --git a/templates/backOffice/default/configuration.html b/templates/backOffice/default/configuration.html index ae6ce634c..fda9dafb5 100755 --- a/templates/backOffice/default/configuration.html +++ b/templates/backOffice/default/configuration.html @@ -179,6 +179,13 @@ {/loop} + {loop type="auth" name="pcc9" role="ADMIN" resource="admin.configuration.update" access="VIEW"} + + {intl l='Update your Thelia'} + + + {/loop} + {module_include location='system_configuration_bottom'} diff --git a/templates/backOffice/default/update-notneeded.html b/templates/backOffice/default/update-notneeded.html index 263be3d18..643b24f9a 100644 --- a/templates/backOffice/default/update-notneeded.html +++ b/templates/backOffice/default/update-notneeded.html @@ -2,5 +2,25 @@ {block name="page-title"}{intl l='Update'}{/block} -{block name="check-resource"}update{/block} -{block name="check-access"}view{/block} \ No newline at end of file +{block name="check-resource"}admin.configuration.update{/block} +{block name="check-access"}view{/block} + +{block name="main-content"} +
+ +
+
+
+ {intl l="Your Thelia is already up-to-date"} +
+
+
+
+ +{/block} \ No newline at end of file