Browse Source

[Administration] Affiche de la nouvelle version de Souke uniquement pour les administrateurs

feature/rotating_product
Guillaume Bourgeois 6 months ago
parent
commit
b9ff620fa8
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      backend/views/layouts/content.php

+ 6
- 1
backend/views/layouts/content.php View File

@@ -44,6 +44,8 @@ use common\helpers\GlobalParam;
$producerModule = $this->getProducerModule();
$adminSettingBag = $this->getSettingModule()->getAdminSettingBag();
$sharedPointSaleModule = $this->getSharedPointSaleModule();
$userModule = $this->getUserModule();
$userCurrent = GlobalParam::getCurrentUser();
$producer = GlobalParam::getCurrentProducer();

?>
@@ -93,7 +95,10 @@ $producer = GlobalParam::getCurrentProducer();
]) ?>

<?php $producer = GlobalParam::getCurrentProducer(); ?>
<?php if($producer && !$producerModule->isUpToDateWithOpendistribVersion($producer) && $producer->option_display_message_new_opendistrib_version): ?>
<?php if($producer
&& !$producerModule->isUpToDateWithOpendistribVersion($producer)
&& $producer->option_display_message_new_opendistrib_version
&& !$userModule->getAuthorizationChecker()->isGrantedAsAdministrator($userCurrent)): ?>
<div class="alert alert-success">
<p>
<i class="icon fa fa-cogs"></i>

Loading…
Cancel
Save