Преглед на файлове

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

feature/rotating_product
Guillaume Bourgeois преди 5 месеца
родител
ревизия
b9ff620fa8
променени са 1 файла, в които са добавени 6 реда и са изтрити 1 реда
  1. +6
    -1
      backend/views/layouts/content.php

+ 6
- 1
backend/views/layouts/content.php Целия файл

@@ -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…
Отказ
Запис