Pārlūkot izejas kodu

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

feature/rotating_product
Guillaume Bourgeois pirms 5 mēnešiem
vecāks
revīzija
b9ff620fa8
1 mainītis faili ar 6 papildinājumiem un 1 dzēšanām
  1. +6
    -1
      backend/views/layouts/content.php

+ 6
- 1
backend/views/layouts/content.php Parādīt failu

@@ -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>

Notiek ielāde…
Atcelt
Saglabāt