ソースを参照

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

読み込み中…
キャンセル
保存